From 3aef7c1223bfcaacecaceef1e4b8180ebdafb75a Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 2 Dec 2019 21:59:29 -0500 Subject: [PATCH] [O] Trim emails --- src/logic/login-user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/login-user.ts b/src/logic/login-user.ts index 6d36f64..4b9e892 100644 --- a/src/logic/login-user.ts +++ b/src/logic/login-user.ts @@ -29,7 +29,7 @@ export default class LoginUser this.nickname = json.nickname; this.graduationYear = json.graduationYear; this.groups = json.groups; - this.emails = json.emails.split('|'); + this.emails = json.emails.split('|').map((e: any) => e.toLowerCase().trim()); this.classes = json.classes.split('|'); this.birthday = json.birthday; this.avatarUrl = json.avatarUrl;