Only show some providers in signup page.

This commit is contained in:
Yang Luo
2021-06-09 20:39:43 +08:00
parent ec91ded5aa
commit 440aad2369
6 changed files with 25 additions and 6 deletions

View File

@ -47,6 +47,14 @@ export function isProviderVisible(provider) {
}
}
export function isProviderVisibleForSignUp(provider) {
if (provider.enableSignUp === false) {
return false;
}
return isProviderVisible(provider);
}
export function parseJson(s) {
if (s === "") {
return null;