Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
58796805
Commit
58796805
authored
Sep 21, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Sep 21, 2017
Browse files
Merge "Bug 1546769: Stop 'none' auth being allowed to work on production site"
parents
457d11d1
3cc09ae5
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/auth/none/lib.php
View file @
58796805
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment