Prechádzať zdrojové kódy

Fix bug where email address cannot be changed

Alan Lam 7 rokov pred
rodič
commit
1cf92ac9ef
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      controllers/settings.php

+ 3 - 1
controllers/settings.php

@@ -26,6 +26,8 @@ if($submit) {
 		$user->title = http::value("title", "trim");
 		$user->first_name = http::value("first_name", "trim");
 		$user->last_name = http::value("last_name", "trim");
+
+		$user->email = http::value("email", "email");
 		$user->phone = http::value("phone", "trim");
 
 		$user->locale = http::value("locale", "trim");
@@ -80,4 +82,4 @@ View::includeOnce("header", compact("page_title"));
 View::include("settings", compact("user"));
 View::includeOnce("footer");
 
-?>
+?>