From 266a805bfe023777723d293235e7329bcbf52323 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Nov 2019 15:40:08 +0300 Subject: line endings + remove : from headings --- classes/pref/prefs.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'classes/pref/prefs.php') diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index a80583635..77d3adeb7 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -408,11 +408,11 @@ class Pref_Prefs extends Handler_Protected { print "
"; - print " "; - print ""; @@ -469,13 +469,13 @@ class Pref_Prefs extends Handler_Protected { print_notice("You will need to use a separate password for the API clients if you enable OTP."); if (function_exists("imagecreatefromstring")) { - print "

" . __("Scan the following code by the Authenticator application or copy the key manually:") . "

"; + print "

" . __("Scan the following code by the Authenticator application or copy the key manually") . "

"; $csrf_token = $_SESSION["csrf_token"]; print "otp qr-code"; } else { print_error("PHP GD functions are required to generate QR codes."); - print "

" . __("Use the following OTP key with a compatible Authenticator application:") . "

"; + print "

" . __("Use the following OTP key with a compatible Authenticator application") . "

"; } print "
"; @@ -1258,7 +1258,7 @@ class Pref_Prefs extends Handler_Protected { print "".__("Last used").""; print ""; - $sth = $this->pdo->prepare("SELECT id, title, created, last_used + $sth = $this->pdo->prepare("SELECT id, title, created, last_used FROM ttrss_app_passwords WHERE owner_uid = ?"); $sth->execute([$_SESSION['uid']]); @@ -1310,9 +1310,9 @@ class Pref_Prefs extends Handler_Protected { print_warning(T_sprintf("Generated password %s for %s. Please remember it for future reference.", $new_password, $title)); - $sth = $this->pdo->prepare("INSERT INTO ttrss_app_passwords + $sth = $this->pdo->prepare("INSERT INTO ttrss_app_passwords (title, pwd_hash, service, created, owner_uid) - VALUES + VALUES (?, ?, ?, NOW(), ?)"); $sth->execute([$title, $new_password_hash, Auth_Base::AUTH_SERVICE_API, $_SESSION['uid']]); -- cgit v1.2.3