aboutsummaryrefslogtreecommitdiff
path: root/actions/user/password.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/password.php')
-rw-r--r--actions/user/password.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/user/password.php b/actions/user/password.php
index 2af60dfb7..ceb9d4585 100644
--- a/actions/user/password.php
+++ b/actions/user/password.php
@@ -18,8 +18,8 @@ if (!$user_id) {
$user = get_entity($user_id);
}
-if (($user) && ($password!="")) {
- if (strlen($password)>=4) {
+if (($user) && ($password != "")) {
+ if (strlen($password) >= 4) {
if ($password == $password2) {
$user->salt = generate_random_cleartext_password(); // Reset the salt
$user->password = generate_user_password($user, $password);