Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit a0fa7e4

Browse files
authoredJul 1, 2021
Merge pull request #7 from Woile/ep2021
fix: make login error clear
2 parents bcbcd98 + d282935 commit a0fa7e4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed
 

‎src/components/structures/auth/Login.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,24 @@ export default class LoginComponent extends React.PureComponent<IProps, IState>
211211
// Some error strings only apply for logging in
212212
const usingEmail = username.indexOf("@") > 0;
213213
if (error.errcode == 'no_tickets_found') {
214-
errorText = "Login failed. Please purchase or assign a ticket to this email address first.";
214+
errorText = (
215+
<div>
216+
<div>
217+
Login failed. Possible errors:
218+
</div>
219+
<ul>
220+
<li>
221+
Invalid password
222+
</li>
223+
<li>
224+
Ticket has not been assigned to this email address
225+
</li>
226+
<li>
227+
Ticket has not been purchased
228+
</li>
229+
</ul>
230+
</div>
231+
)
215232
} else if (error.httpStatus === 400 && usingEmail) {
216233
errorText = _t('This homeserver does not support login using email address.');
217234
} else if (error.errcode === 'M_RESOURCE_LIMIT_EXCEEDED') {

0 commit comments

Comments
 (0)
This repository has been archived.