allow custom reset password token

use a dialog to confirm password before reset password
hide reset password token and reset password by default
This commit is contained in:
BinTianqi
2024-08-09 18:39:27 +08:00
parent 8f93c85d6c
commit d56983790f
6 changed files with 156 additions and 80 deletions

View File

@@ -473,7 +473,7 @@
<!--Password&Keyguard-->
<string name="password_and_keyguard">密码与锁屏</string>
<string name="password_info">密码信息</string>
<string name="reset_pwd_desc">留空以清除密码纯数字将使用PIN码</string>
<string name="reset_pwd_desc">留空以清除密码</string>
<string name="max_pwd_fail">最大密码错误次数</string>
<string name="max_pwd_fail_desc">达到该限制会恢复出厂设置0为无限制</string>
<string name="max_pwd_fail_textfield">错误次数</string>
@@ -493,17 +493,19 @@
<string name="password_failed_attempts_is">密码已错误次数:%1$s</string>
<string name="is_using_unified_password">个人与工作应用密码一致:%1$s</string>
<string name="reset_password_token">密码重置令牌</string>
<string name="token">令牌</string>
<string name="token_must_longer_than_32_byte">令牌必须大于32字节</string>
<string name="token_already_activated">令牌已经激活</string>
<string name="clear">清除</string>
<string name="set">设置</string>
<string name="please_set_a_token">请先设置令牌</string>
<string name="activate_token_not_required_when_no_password">没有密码时会自动激活令牌</string>
<string name="reset_password">重置密码</string>
<string name="confirm_password">确认密码</string>
<string name="do_not_ask_credentials_on_boot">启动(boot)时不要求密码</string>
<string name="reset_password_require_entry">不允许其他设备管理员重置密码直至用户输入一次密码</string>
<string name="require_4_digit_password">需要4位密码</string>
<string name="reset_password_with_token">使用令牌重置密码</string>
<string name="reset_password_deprecated">重置密码(弃用)</string>
<string name="required_password_complexity">密码复杂度要求</string>
<string name="require_set_new_password">要求设置新密码</string>
<string name="disable_keyguard_features">锁屏功能</string>