Merge branch 'develop_admin_password' into 'release'
fix: 修复异常情况下管理员密码未重置问题 See merge request StarlockTeam/app-starlock!170
This commit is contained in:
commit
6ac1759b28
@ -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