updated login with remember = false by default
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -54,7 +54,7 @@ const OPTION_NAME = 'tz_auth'; // Database lookup key (`wp_options`.`option_name | ... | @@ -54,7 +54,7 @@ const OPTION_NAME = 'tz_auth'; // Database lookup key (`wp_options`.`option_name |
| 54 | * @throws LogicException If headers have already been passed | 54 | * @throws LogicException If headers have already been passed |
| 55 | * @throws InvalidArgumentException If the authentication is invalid | 55 | * @throws InvalidArgumentException If the authentication is invalid |
| 56 | */ | 56 | */ |
| 57 | function login($username, $password, $remember = true) { | 57 | function login($username, $password, $remember = false) { |
| 58 | if (headers_sent()) { | 58 | if (headers_sent()) { |
| 59 | throw new LogicException('Unable to login because headers have been sent'); | 59 | throw new LogicException('Unable to login because headers have been sent'); |
| 60 | } | 60 | } | ... | ... |
-
Please register or sign in to post a comment