Add i18n to change_password
This commit is contained in:
parent
cb6a1c729c
commit
5ed3420173
@ -6,16 +6,21 @@
|
|||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
|
|
||||||
$APPS["change_password"]["title"] = "Change Password";
|
$oldpass = lang("current password", false);
|
||||||
|
$newpass = lang("new password", false);
|
||||||
|
$conpass = lang("confirm password", false);
|
||||||
|
$change = lang("change password", false);
|
||||||
|
|
||||||
|
$APPS["change_password"]["title"] = lang("change password", false);
|
||||||
$APPS["change_password"]["icon"] = "key";
|
$APPS["change_password"]["icon"] = "key";
|
||||||
$APPS["change_password"]["content"] = <<<CONTENTEND
|
$APPS["change_password"]["content"] = <<<CONTENTEND
|
||||||
<form action="action.php" method="POST">
|
<form action="action.php" method="POST">
|
||||||
<input type="password" class="form-control" name="oldpass" placeholder="Current password" />
|
<input type="password" class="form-control" name="oldpass" placeholder="$oldpass" />
|
||||||
<input type="password" class="form-control" name="newpass" placeholder="New password" />
|
<input type="password" class="form-control" name="newpass" placeholder="$newpass" />
|
||||||
<input type="password" class="form-control" name="conpass" placeholder="New password (again)" />
|
<input type="password" class="form-control" name="conpass" placeholder="$conpass" />
|
||||||
<input type="hidden" name="action" value="chpasswd" />
|
<input type="hidden" name="action" value="chpasswd" />
|
||||||
<input type="hidden" name="source" value="security" />
|
<input type="hidden" name="source" value="security" />
|
||||||
<br />
|
<br />
|
||||||
<button type="submit" class="btn btn-success btn-sm btn-block">Change Password</button>
|
<button type="submit" class="btn btn-success btn-sm btn-block">$change</button>
|
||||||
</form>
|
</form>
|
||||||
CONTENTEND;
|
CONTENTEND;
|
||||||
|
@ -40,6 +40,9 @@ $STRINGS = [
|
|||||||
"new password mismatch" => "The new passwords did not match. Try again.",
|
"new password mismatch" => "The new passwords did not match. Try again.",
|
||||||
"weak password" => "Password does not meet requirements.",
|
"weak password" => "Password does not meet requirements.",
|
||||||
"password updated" => "Password updated successfully.",
|
"password updated" => "Password updated successfully.",
|
||||||
|
"current password" => "Current password",
|
||||||
|
"new password" => "New password",
|
||||||
|
"confirm password" => "New password (again)",
|
||||||
"setup 2fa" => "Setup 2-factor authentication",
|
"setup 2fa" => "Setup 2-factor authentication",
|
||||||
"2fa removed" => "2-factor authentication disabled.",
|
"2fa removed" => "2-factor authentication disabled.",
|
||||||
"2fa enabled" => "2-factor authentication activated.",
|
"2fa enabled" => "2-factor authentication activated.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user