summaryrefslogtreecommitdiff
path: root/classes/pref/users.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-03 15:08:43 +0300
committerAndrew Dolgov <[email protected]>2018-11-03 15:08:43 +0300
commit3a0292303e453f38204279b5d1c978a4b9c367e9 (patch)
tree2636ec8e8fcb32cd678084d2907bab273bfd3c60 /classes/pref/users.php
parent3b9f982ec6398312ba52cc807c53ce8b78fbc649 (diff)
php: remove trailing whitespaces
Diffstat (limited to 'classes/pref/users.php')
-rw-r--r--classes/pref/users.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/classes/pref/users.php b/classes/pref/users.php
index 9728e3bc9..ab8ac775b 100644
--- a/classes/pref/users.php
+++ b/classes/pref/users.php
@@ -170,12 +170,12 @@ class Pref_Users extends Handler_Protected {
}
print "</ul>";
-
-
+
+
} else {
print "<h1>".__('User not found')."</h1>";
}
-
+
}
function editSave() {
@@ -188,7 +188,7 @@ class Pref_Users extends Handler_Protected {
if ($password) {
$salt = substr(bin2hex(get_random_bytes(125)), 0, 250);
$pwd_hash = encrypt_password($password, $salt, true);
- $pass_query_part = "pwd_hash = ".$this->pdo->quote($pwd_hash).",
+ $pass_query_part = "pwd_hash = ".$this->pdo->quote($pwd_hash).",
salt = ".$this->pdo->quote($salt).",";
} else {
$pass_query_part = "";
@@ -265,7 +265,7 @@ class Pref_Users extends Handler_Protected {
$sth = $pdo->prepare("SELECT login, email
FROM ttrss_users WHERE id = ?");
$sth->execute([$uid]);
-
+
if ($row = $sth->fetch()) {
$login = $row["login"];
@@ -276,7 +276,7 @@ class Pref_Users extends Handler_Protected {
$pwd_hash = encrypt_password($tmp_user_pwd, $new_salt, true);
- $sth = $pdo->prepare("UPDATE ttrss_users
+ $sth = $pdo->prepare("UPDATE ttrss_users
SET pwd_hash = ?, salt = ?, otp_enabled = false
WHERE id = ?");
$sth->execute([$pwd_hash, $new_salt, $uid]);
@@ -313,7 +313,7 @@ class Pref_Users extends Handler_Protected {
if (!$rc) print_error($mail->ErrorInfo);
}
-
+
}
}