mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 23:05:11 +00:00
Better error code
This commit is contained in:
parent
f6b2f76bbf
commit
64f89ba13e
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export default (endpoint: string, user: IUser, app: IApp, data: any, file?: any)
|
|||
}
|
||||
|
||||
if (ep.meta.requireCredential && user == null) {
|
||||
return rej('SIGNIN_REQUIRED');
|
||||
return rej('CREDENTIAL_REQUIRED');
|
||||
}
|
||||
|
||||
if (ep.meta.requireCredential && user.isSuspended) {
|
||||
|
|
Loading…
Reference in a new issue