mirror of https://github.com/MISP/MISP
Add consistent i18n support for all strings.
parent
d254d04365
commit
9062881469
|
@ -1672,7 +1672,7 @@ class UsersController extends AppController
|
|||
$this->Flash->success(__("You are now logged in."));
|
||||
$this->redirect($this->Auth->redirectUrl());
|
||||
} else {
|
||||
$this->Flash->error("The OTP is incorrect or has expired");
|
||||
$this->Flash->error(__("The OTP is incorrect or has expired"));
|
||||
}
|
||||
} else {
|
||||
// GET Request
|
||||
|
@ -1727,7 +1727,7 @@ class UsersController extends AppController
|
|||
if ( $result ) {
|
||||
$this->Flash->success(__("An email containing a OTP has been sent."));
|
||||
} else {
|
||||
$this->Flash->error("The email couldn't be sent, please reach out to your administrator.");
|
||||
$this->Flash->error(__("The email couldn't be sent, please reach out to your administrator."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
<div class="actions sideMenu">
|
||||
<div style="padding: 10px;">
|
||||
<p> Your administrator has turned on an additional authentication step which
|
||||
requires you to enter a OTP (one time password) you have received via email.
|
||||
<p> <?php echo __("Your administrator has turned on an additional authentication step which
|
||||
requires you to enter a OTP (one time password) you have received via email.");?>
|
||||
</p>
|
||||
<p> Make sure to check your SPAM folder. </p>
|
||||
<a href='<?php echo $baseurl; ?>/users/email_otp'> <button class='btn'> Resend </button></a>
|
||||
<p> <?php echo __("Make sure to check your SPAM folder.");?> </p>
|
||||
<a href='<?php echo $baseurl; ?>/users/email_otp'> <button class='btn'> <?php echo __("Resend"); ?> </button></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -14,11 +14,11 @@
|
|||
echo $this->element('/genericElements/Form/genericForm', array(
|
||||
"form" => $this->Form,
|
||||
"data" => array(
|
||||
"title" => "Validate your OTP",
|
||||
"title" => __("Validate your OTP"),
|
||||
"fields" => array(
|
||||
array(
|
||||
"field" => "otp",
|
||||
"label" => "One Time Password",
|
||||
"label" => __("One Time Password"),
|
||||
"type" => "text",
|
||||
"placeholder" => __("Enter your OTP here"),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue