fix: 修复异常情况下管理员密码未重置问题
This commit is contained in:
parent
7873596683
commit
cb6d3953a4
@ -112,6 +112,7 @@ class _AdminOpenLockPasswordPageState extends State<AdminOpenLockPasswordPage>
|
||||
// 检查密码是否重复
|
||||
final bool isPasswordAvailable = await logic.checkPassword();
|
||||
if (!isPasswordAvailable) {
|
||||
state.changePwdController.clear();
|
||||
return; // 如果密码重复,直接返回
|
||||
}
|
||||
|
||||
@ -119,6 +120,7 @@ class _AdminOpenLockPasswordPageState extends State<AdminOpenLockPasswordPage>
|
||||
logic.changeAdministratorPasswordCommand();
|
||||
},
|
||||
cancelClick: () {
|
||||
state.changePwdController.clear();
|
||||
Get.back();
|
||||
},
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user