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

@@ -850,7 +850,7 @@ class TemporaryPasswordLengthMenu: Reactor.Component {
var me = this;
var method = handler.get_option('verification-method');
self.timer(1ms, function() { me.toggleMenuState() });
return <li disabled={ method == 'use-permanent-password' ? "true" : "false" }>{translate("Set temporary password length")}
return <li disabled={ method == 'use-permanent-password' ? "true" : "false" }>{translate("One-time password length")}
<menu #temporary-password-length>
<li #temporary-password-length-6><span>{svg_checkmark}</span>6</li>
<li #temporary-password-length-8><span>{svg_checkmark}</span>8</li>
@@ -891,7 +891,7 @@ class PasswordArea: Reactor.Component {
self.timer(1ms, function() { me.toggleMenuState() });
return
<div .your-desktop>
<div>{translate('Password')}</div>
<div>{translate('One-time Password')}</div>
<div .password style="flow:horizontal">
{this.renderPop()}
<PasswordEyeArea />
@@ -909,7 +909,7 @@ class PasswordArea: Reactor.Component {
<li #approve-mode-click><span>{svg_checkmark}</span>{translate('Accept sessions via click')}</li>
<li #approve-mode-both><span>{svg_checkmark}</span>{translate('Accept sessions via both')}</li>
{ !show_password ? '' : <div .separator /> }
{ !show_password ? '' : <li #use-temporary-password><span>{svg_checkmark}</span>{translate('Use temporary password')}</li> }
{ !show_password ? '' : <li #use-temporary-password><span>{svg_checkmark}</span>{translate('Use one-time password')}</li> }
{ !show_password ? '' : <li #use-permanent-password><span>{svg_checkmark}</span>{translate('Use permanent password')}</li> }
{ !show_password ? '' : <li #use-both-passwords><span>{svg_checkmark}</span>{translate('Use both passwords')}</li> }
{ !show_password ? '' : <div .separator /> }