mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-04-25 08:04:15 -05:00
Fix email mismatch error message
This commit is contained in:
parent
fe53f73b62
commit
5f07341fe9
|
|
@ -411,7 +411,7 @@ export class Session {
|
|||
});
|
||||
const payload = ticket.getPayload()!; // dunno why this would happen.
|
||||
if (payload.email?.toLowerCase() !== userData.email.slice(0, -1).toLowerCase()) {
|
||||
throw new ActionError(`Wrong Google account for this Showdown account (must be ${userData.email.slice(0, -1)} not ${payload.email})`);
|
||||
throw new ActionError(`Wrong Google account for this Showdown account (${payload.email} doesn't match this account)`);
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user