mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
check whether api token is enabled when using an api token
This commit is contained in:
@@ -19,7 +19,7 @@ export function isUserForgetPasswordEnabled(): boolean {
|
||||
return getServerSetting('f') === 1;
|
||||
}
|
||||
|
||||
export function isGenerateAPITokenEnabled(): boolean {
|
||||
export function isAPITokenEnabled(): boolean {
|
||||
return getServerSetting('t') === 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user