feat:忘记密码配置
This commit is contained in:
1 parent
2d6603dfd5
commit
96ae2b45c0
9 files changed
+184
-5
No files matched your search
@@ -149,6 +149,14 @@ class SysSetting extends Equatable {
|
||||
@JsonKey(defaultValue: false)
|
||||
bool manualHardwareInput;
|
||||
|
||||
/// 手动退出登录时是否忘记已保存的登录密码;旧配置缺失时同样默认开启。
|
||||
@JsonKey(defaultValue: true)
|
||||
bool forgetPasswordOnManualLogout;
|
||||
|
||||
/// 机器突然断电或重启后,下次冷启动是否要求重新输入登录密码;默认开启。
|
||||
@JsonKey(defaultValue: true)
|
||||
bool forgetPasswordOnPowerLoss;
|
||||
|
||||
/// Root 最近一次真实命令检查状态;旧配置缺失时按未检查处理。
|
||||
@JsonKey(defaultValue: RootAccessStatus.unknown)
|
||||
RootAccessStatus rootAccessStatus;
|
||||
@@ -174,6 +182,8 @@ class SysSetting extends Equatable {
|
||||
this.printerOutputMode = 'IMAGE',
|
||||
this.tenantList,
|
||||
this.manualHardwareInput = false,
|
||||
this.forgetPasswordOnManualLogout = true,
|
||||
this.forgetPasswordOnPowerLoss = true,
|
||||
this.rootAccessStatus = RootAccessStatus.unknown,
|
||||
this.rootAccessCheckedAt,
|
||||
this.rootAccessDiagnostic,
|
||||
@@ -234,6 +244,8 @@ class SysSetting extends Equatable {
|
||||
defaultPayDisplayType,
|
||||
tenantList,
|
||||
manualHardwareInput,
|
||||
forgetPasswordOnManualLogout,
|
||||
forgetPasswordOnPowerLoss,
|
||||
rootAccessStatus,
|
||||
rootAccessCheckedAt?.millisecondsSinceEpoch,
|
||||
rootAccessDiagnostic,
|
||||
|
||||
Reference in new issue
Block a user