mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Add Setting.isResponseDenied()
This commit is contained in:
@ -262,6 +262,13 @@ export function isProviderVisible(providerItem) {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function isResponseDenied(data) {
|
||||
if (data.msg === "Unauthorized operation" || data.msg === "未授权的操作") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function isProviderVisibleForSignUp(providerItem) {
|
||||
if (providerItem.canSignUp === false) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user