Skip to content

Commit f2c05b7

Browse files
committed
Fix typo
1 parent 993f7b5 commit f2c05b7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Website/app/AuthController.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ class AuthController extends Controller {
2424

2525
use EmailSenderTrait;
2626

27-
const MIN_PASSWORT_LENGTH = 8;
27+
const MIN_PASSWORD_LENGTH = 8;
2828

2929
public static function showSignUp(App $app) {
3030
echo $app->view(
3131
'sign-up.html',
3232
[
33-
'passwordMinLength' => self::MIN_PASSWORT_LENGTH
33+
'passwordMinLength' => self::MIN_PASSWORD_LENGTH
3434
]
3535
);
3636
}
@@ -42,7 +42,7 @@ public static function saveSignUp(App $app) {
4242
$displayName = $app->input()->post('display-name');
4343

4444
if (!empty($email)) {
45-
if (!empty($password1) && \strlen($password1) >= self::MIN_PASSWORT_LENGTH) {
45+
if (!empty($password1) && \strlen($password1) >= self::MIN_PASSWORD_LENGTH) {
4646
if ($password1 === $password2) {
4747
if (\preg_match('/[\x00-\x1f\x7f$\/:\\\\]/', $displayName) === 0) {
4848
try {
@@ -257,7 +257,7 @@ public static function getResetPassword(App $app, $selector, $token) {
257257
echo $app->view(
258258
'reset_password.html',
259259
[
260-
'passwordMinLength' => self::MIN_PASSWORT_LENGTH
260+
'passwordMinLength' => self::MIN_PASSWORD_LENGTH
261261
]
262262
);
263263
}
@@ -271,7 +271,7 @@ public static function postResetPassword(App $app, $selector, $token) {
271271
$password1 = $app->input()->post('password-1');
272272
$password2 = $app->input()->post('password-2');
273273

274-
if (!empty($password1) && \strlen($password1) >= self::MIN_PASSWORT_LENGTH) {
274+
if (!empty($password1) && \strlen($password1) >= self::MIN_PASSWORD_LENGTH) {
275275
if ($password1 === $password2) {
276276
try {
277277
$app->auth()->resetPassword($selector, $token, $password1);

Website/app/SettingsController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function getSettings(App $app) {
2626
echo $app->view(
2727
'settings.html',
2828
[
29-
'passwordMinLength' => AuthController::MIN_PASSWORT_LENGTH,
29+
'passwordMinLength' => AuthController::MIN_PASSWORD_LENGTH,
3030
'passwordResetEnabled' => $app->auth()->isPasswordResetEnabled()
3131
]
3232
);
@@ -40,7 +40,7 @@ public static function postChangePassword(App $app) {
4040
$newPasswordRepeated = $app->input()->post('password-2', \TYPE_STRING);
4141

4242
if ($oldPassword !== null && $newPassword !== null && $newPasswordRepeated !== null) {
43-
if (\strlen($newPassword) >= AuthController::MIN_PASSWORT_LENGTH) {
43+
if (\strlen($newPassword) >= AuthController::MIN_PASSWORD_LENGTH) {
4444
if ($newPasswordRepeated === $newPassword) {
4545
try {
4646
$app->auth()->changePassword($oldPassword, $newPassword);

0 commit comments

Comments
 (0)