1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 00:38:14 +09:00

Better error code

This commit is contained in:
syuilo 2018-11-06 01:57:31 +09:00
parent f6b2f76bbf
commit 64f89ba13e
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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) {