Commit cb2f9130 authored by Robert Lyon's avatar Robert Lyon
Browse files

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


Change-Id: I80432042b06f00f0e84d0bdf2d7327233c4f2ba9
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
(cherry picked from commit 3cc09ae5)
parent 5cf44546
......@@ -43,8 +43,7 @@ class AuthNone extends Auth {
public function authenticate_user_account($user, $password) {
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