refactor(auth): rename loginType to loginStatus and update related logic
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import type { AuthMode } from "@/models/auth/auth-mode";
|
||||
import type { AuthPanelMode } from "@/models/auth/auth-panel-mode";
|
||||
import type { LoginType } from "@/models/auth/login-type";
|
||||
import type { LoginStatus } from "@/models/auth/login-status";
|
||||
|
||||
export interface AuthState {
|
||||
/** 当前面板模式(Facebook / Email) */
|
||||
@@ -15,7 +15,8 @@ export interface AuthState {
|
||||
username: string;
|
||||
confirmPassword: string;
|
||||
errorMessage: string | null;
|
||||
loginType: LoginType;
|
||||
/** 当前登录状态(未登录 / 游客 / OAuth / 邮箱) */
|
||||
loginStatus: LoginStatus;
|
||||
}
|
||||
|
||||
export const initialState: AuthState = {
|
||||
@@ -26,5 +27,5 @@ export const initialState: AuthState = {
|
||||
username: "",
|
||||
confirmPassword: "",
|
||||
errorMessage: null,
|
||||
loginType: "none",
|
||||
loginStatus: "notLoggedIn",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user