mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add new Grist login page
Summary: Adds a new Grist login page to the login app, and replaces the server-side Cognito Google Sign-In flow with Google's own OAuth flow. Test Plan: Browser and server tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3332
This commit is contained in:
@@ -282,7 +282,9 @@ export class ScopedSession {
|
||||
const session = prev || await this._getSession();
|
||||
if (!session.users) { session.users = []; }
|
||||
if (!session.orgToUser) { session.orgToUser = {}; }
|
||||
let index = session.users.findIndex(u => Boolean(u.profile && u.profile.email === profile.email));
|
||||
let index = session.users.findIndex(u => {
|
||||
return Boolean(u.profile && normalizeEmail(u.profile.email) === normalizeEmail(profile.email));
|
||||
});
|
||||
if (index < 0) { index = session.users.length; }
|
||||
session.orgToUser[this._org] = index;
|
||||
session.users[index] = user;
|
||||
|
||||
Reference in New Issue
Block a user