mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
99f3422217
Summary: Available at login.getgrist.com/signup, the new sign-up page includes similar options available on the hosted Cognito sign-up page, such as support for registering with Google. All previous redirects to Cognito for sign-up should now redirect to the new Grist sign-up page. Login is still handled with the hosted Cognito login page, and there is a link to go there from the new sign-up page. Test Plan: Browser, project and server tests. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3249
14 lines
444 B
TypeScript
14 lines
444 B
TypeScript
import { GristLoginSystem } from 'app/server/lib/GristServer';
|
|
import { getMinimalLoginSystem } from 'app/server/lib/MinimalLogin';
|
|
import { getSamlLoginSystem } from 'app/server/lib/SamlConfig';
|
|
|
|
export async function getLoginSystem(): Promise<GristLoginSystem> {
|
|
const saml = await getSamlLoginSystem();
|
|
if (saml) { return saml; }
|
|
return getMinimalLoginSystem();
|
|
}
|
|
|
|
export function getLoginSubdomain(): string | null {
|
|
return null;
|
|
}
|