Changeset 3874:ab8368569446 for admin/auth.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/auth.php
r3731 r3874 122 122 throw new Exception(); 123 123 } 124 $data = array(124 $data = [ 125 125 'user_id' => base64_decode($tmp_data[0]), 126 126 'cookie_admin' => $tmp_data[1], 127 127 'user_remember' => $tmp_data[2] == '1' 128 );128 ]; 129 129 if ($data['user_id'] === false) { 130 130 throw new Exception(); … … 190 190 191 191 if ($check_perms && $core->auth->mustChangePassword()) { 192 $login_data = join('/', array(192 $login_data = join('/', [ 193 193 base64_encode($user_id), 194 194 $cookie_admin, 195 195 empty($_POST['user_remember']) ? '0' : '1' 196 ));196 ]); 197 197 198 198 if (!$core->auth->allowPassChange()) { … … 294 294 '<p><label for="user_id">' . __('Username:') . '</label> ' . 295 295 form::field('user_id', 20, 32, 296 array(296 [ 297 297 'default' => html::escapeHTML($user_id), 298 298 'autocomplete' => 'username' 299 )299 ] 300 300 ) . 301 301 '</p>' . … … 303 303 '<p><label for="user_email">' . __('Email:') . '</label> ' . 304 304 form::email('user_email', 305 array(305 [ 306 306 'default' => html::escapeHTML($user_email), 307 307 'autocomplete' => 'email' 308 )308 ] 309 309 ) . 310 310 '</p>' . … … 322 322 '<p><label for="new_pwd">' . __('New password:') . '</label> ' . 323 323 form::password('new_pwd', 20, 255, 324 array(324 [ 325 325 'autocomplete' => 'new-password' 326 )326 ] 327 327 ) . '</p>' . 328 328 329 329 '<p><label for="new_pwd_c">' . __('Confirm password:') . '</label> ' . 330 330 form::password('new_pwd_c', 20, 255, 331 array(331 [ 332 332 'autocomplete' => 'new-password' 333 )333 ] 334 334 ) . '</p>' . 335 335 '</div>' . … … 338 338 form::hidden('login_data', $login_data) . '</p>'; 339 339 } else { 340 if (is_callable( array($core->auth, 'authForm'))) {340 if (is_callable([$core->auth, 'authForm'])) { 341 341 echo $core->auth->authForm($user_id); 342 342 } else { … … 356 356 '<p><label for="user_id">' . __('Username:') . '</label> ' . 357 357 form::field('user_id', 20, 32, 358 array(358 [ 359 359 'default' => html::escapeHTML($user_id), 360 360 'autocomplete' => 'username' 361 )361 ] 362 362 ) . '</p>' . 363 363 364 364 '<p><label for="user_pwd">' . __('Password:') . '</label> ' . 365 365 form::password('user_pwd', 20, 255, 366 array(366 [ 367 367 'autocomplete' => 'current-password' 368 )368 ] 369 369 ) . '</p>' . 370 370 … … 397 397 echo '<p id="more"><strong>' . __('Connection issue?') . '</strong></p>'; 398 398 if ($core->auth->allowPassChange()) { 399 echo '<p><a href="' . $core->adminurl->get('admin.auth', array('recover' => 1)) . '">' . __('I forgot my password') . '</a></p>';399 echo '<p><a href="' . $core->adminurl->get('admin.auth', ['recover' => 1]) . '">' . __('I forgot my password') . '</a></p>'; 400 400 } 401 echo '<p><a href="' . $core->adminurl->get('admin.auth', array('safe_mode' => 1)) . '" id="safe_mode_link">' . __('I want to log in in safe mode') . '</a></p>';401 echo '<p><a href="' . $core->adminurl->get('admin.auth', ['safe_mode' => 1]) . '" id="safe_mode_link">' . __('I want to log in in safe mode') . '</a></p>'; 402 402 } 403 403
Note: See TracChangeset
for help on using the changeset viewer.