rename temporary password to one-time password

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-11-21 14:06:32 +08:00
parent 50be5c0f14
commit 6f390759f3
29 changed files with 88 additions and 84 deletions

View File

@@ -35,7 +35,8 @@ class ServerModel with ChangeNotifier {
late String _emptyIdShow;
late final IDTextEditingController _serverId;
final _serverPasswd = TextEditingController(text: "");
final _serverPasswd =
TextEditingController(text: translate("Generating ..."));
final tabController = DesktopTabController(tabType: DesktopTabType.cm);
@@ -170,7 +171,8 @@ class ServerModel with ChangeNotifier {
update = true;
}
final oldPwdText = _serverPasswd.text;
if (_serverPasswd.text != temporaryPassword) {
if (_serverPasswd.text != temporaryPassword &&
temporaryPassword.isNotEmpty) {
_serverPasswd.text = temporaryPassword;
}
if (verificationMethod == kUsePermanentPassword ||