Add error page and login error redirection
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export interface ICurrentUser {
|
||||
id: number;
|
||||
email: string;
|
||||
isLoggedIn: boolean;
|
||||
}
|
||||
|
||||
4
js/src/types/error-code.model.ts
Normal file
4
js/src/types/error-code.model.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum ErrorCode {
|
||||
UNKNOWN = 'unknown',
|
||||
REGISTRATION_CLOSED = 'registration_closed',
|
||||
}
|
||||
3
js/src/types/login-error-code.model.ts
Normal file
3
js/src/types/login-error-code.model.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export enum LoginErrorCode {
|
||||
NEED_TO_LOGIN = 'rouge',
|
||||
}
|
||||
Reference in New Issue
Block a user