mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Only show some providers in signup page.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user