Completed
Pull Request — master (#2401)
by Kevin
10:32
created
html/user/am_set_info.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 }
160 160
 
161 161
 if (!is_null($teamid)) {
162
-    if ($teamid==0) {
162
+    if ($teamid == 0) {
163 163
         user_quit_team($user);
164 164
     } else {
165 165
         $team = BoincTeam::lookup_id_nocache($teamid);
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
 if ($venue) {
173 173
     $query .= " venue='$venue', ";
174 174
 }
175
-if ($email_addr && $email_addr!=$user->email_addr) {
175
+if ($email_addr && $email_addr != $user->email_addr) {
176 176
     $old_email_addr = $user->email_addr;
177 177
     $query .= " email_addr='$email_addr', ";
178 178
 }
179 179
 if ($password_hash) {
180
-    $database_passwd_hash = password_hash($password_hash , PASSWORD_DEFAULT);
180
+    $database_passwd_hash = password_hash($password_hash, PASSWORD_DEFAULT);
181 181
     $query .= " passwd_hash='$database_passwd_hash', ";
182 182
 }
183 183
 
Please login to merge, or discard this patch.
html/user/create_account.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     xml_error(ERR_ACCT_CREATION_DISABLED);
40 40
 }
41 41
 
42
-if(defined('INVITE_CODES')) {
42
+if (defined('INVITE_CODES')) {
43 43
     $invite_code = get_str("invite_code");
44 44
     if (!preg_match(INVITE_CODES, $invite_code)) {
45 45
         xml_error(ERR_ATTACH_FAIL_INIT);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
 $user = BoincUser::lookup_email_addr($email_addr);
72 72
 if ($user) {
73
-    if ($user->passwd_hash != $passwd_hash && !password_verify($passwd_hash,$user->passwd_hash)) {
73
+    if ($user->passwd_hash != $passwd_hash && !password_verify($passwd_hash, $user->passwd_hash)) {
74 74
         xml_error(ERR_DB_NOT_UNIQUE);
75 75
     } else {
76 76
         $authenticator = $user->authenticator;
Please login to merge, or discard this patch.