summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-02 13:17:23 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-02 13:18:07 +1100
commite38025581d18b9a76fc54b3f6668e3acf4cf8bda (patch)
tree563a86f874228497a99ab53be97588d9026eb153
parentOnly send public user details in GUILD_MEMBER_LIST_UPDATE (diff)
downloadserver-e38025581d18b9a76fc54b3f6668e3acf4cf8bda.tar.xz
Use adjusted email in /auth/login
-rw-r--r--src/api/routes/auth/login.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/auth/login.ts b/src/api/routes/auth/login.ts
index bbfb5425..7434fa35 100644
--- a/src/api/routes/auth/login.ts
+++ b/src/api/routes/auth/login.ts
@@ -46,7 +46,7 @@ router.post(
 		}
 
 		const user = await User.findOneOrFail({
-			where: [{ phone: login }, { email: login }],
+			where: [{ phone: login }, { email: email }],
 			select: [
 				"data",
 				"id",