mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Better error code
This commit is contained in:
parent
5f2e115cbf
commit
260c84f520
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) {
|
if (ep.meta.requireCredential && user == null) {
|
||||||
return rej('SIGNIN_REQUIRED');
|
return rej('CREDENTIAL_REQUIRED');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ep.meta.requireCredential && user.isSuspended) {
|
if (ep.meta.requireCredential && user.isSuspended) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue