feat(auth): Refactor mobile authentication config to support whitelist functionality

This commit is contained in:
web@ppanel
2025-02-14 22:13:50 +07:00
parent 5bac933fbc
commit c761ec7538
12 changed files with 92 additions and 49 deletions
+2 -7
View File
@@ -24,9 +24,8 @@ export const useGlobalStore = create<GlobalStore>((set) => ({
auth: {
mobile: {
enable: false,
limit: 0,
interval: 0,
expire_time: 0,
enable_whitelist: false,
whitelist: [],
},
email: {
enable: false,
@@ -36,10 +35,6 @@ export const useGlobalStore = create<GlobalStore>((set) => ({
},
register: {
stop_register: false,
enable_trial: false,
trial_subscribe: 0,
trial_time: 0,
trial_time_unit: '',
enable_ip_register_limit: false,
ip_register_limit: 0,
ip_register_limit_duration: 0,