Commit 58796805 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1546769: Stop 'none' auth being allowed to work on production site"

parents 457d11d1 3cc09ae5
......@@ -43,8 +43,7 @@ class AuthNone extends Auth {
*/
public function authenticate_user_account($user, $password) {
$this->must_be_ready();
return true;
//return $this->validate_password($password, $user->password, $user->salt);
return !get_config('productionmode');
}
public function can_auto_create_users() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment