Skip to content

Commit 0a84384

Browse files
committed
resend with a d
1 parent a53aba2 commit 0a84384

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

interface/web/login/lib/lang/en.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ $wb['lost_password_function_denied_txt'] = 'This activation link is not valid.';
3535
$wb['otp_code_txt'] = '2-Factor Authentication';
3636
$wb['otp_code_desc_txt'] = 'Enter the code you got from your authenticator app or via email.';
3737
$wb['otp_code_placeholder_txt'] = 'OTP code';
38-
$wb['otp_code_reset_txt'] = 'Request new code';
38+
$wb['otp_code_resend_txt'] = 'Request new code';
3939
?>

interface/web/login/otp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function finish_2fa_success($msg = '') {
135135
}
136136

137137
//* Send code via email
138-
if(!isset($_SESSION['otp']['sent']) || $_GET['action'] == 'resent') {
138+
if(!isset($_SESSION['otp']['sent']) || $_GET['action'] == 'resend') {
139139

140140
//* Ensure that code is not sent too often
141141
if(isset($_SESSION['otp']['sent']) && $_SESSION['otp']['sent'] > $max_code_resend) {

interface/web/login/templates/otp.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2><tmpl_var name="otp_code_txt"></h2>
1414
<div class="right">
1515
<input class="btn btn-default formbutton-default" type="submit" value="{tmpl_var name='login_button_txt'}">
1616
</div>
17-
<a href="otp.php?action=resent">{tmpl_var name='otp_code_reset_txt'}</a>
17+
<a href="otp.php?action=resend">{tmpl_var name='otp_code_resend_txt'}</a>
1818

1919

2020
<input type="hidden" name="_csrf_id" value="{tmpl_var name='_csrf_id'}" />

0 commit comments

Comments
 (0)