mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 20:08:17 +03:00
feat: force consistent casing for emails...
This commit is contained in:
@@ -199,6 +199,9 @@ router.post(
|
||||
captcha: string;
|
||||
};
|
||||
|
||||
// force lowercase for emails to avoid case-confusion in lookups...
|
||||
body.email = body.email.toLowerCase();
|
||||
|
||||
if (body.inviteCode === undefined && ServerConfig.INVITE_CODE_CONFIG) {
|
||||
return res.status(400).json({
|
||||
success: false,
|
||||
@@ -469,6 +472,8 @@ router.post(
|
||||
email: string;
|
||||
};
|
||||
|
||||
body.email = body.email.toLowerCase();
|
||||
|
||||
logger.debug(`received password reset request for ${body.email}.`);
|
||||
|
||||
// For timing attack and infosec reasons, we can't do anything but **immediately** return here.
|
||||
|
||||
Reference in New Issue
Block a user