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();
|
final bool isPasswordAvailable = await logic.checkPassword();
|
||||||
if (!isPasswordAvailable) {
|
if (!isPasswordAvailable) {
|
||||||
|
state.changePwdController.clear();
|
||||||
return; // 如果密码重复,直接返回
|
return; // 如果密码重复,直接返回
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,6 +120,7 @@ class _AdminOpenLockPasswordPageState extends State<AdminOpenLockPasswordPage>
|
|||||||
logic.changeAdministratorPasswordCommand();
|
logic.changeAdministratorPasswordCommand();
|
||||||
},
|
},
|
||||||
cancelClick: () {
|
cancelClick: () {
|
||||||
|
state.changePwdController.clear();
|
||||||
Get.back();
|
Get.back();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user