mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-09-13 12:45:13 -05:00
Fix email mismatch error message
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user