MDL-32052 simplify subclassing of auth_email
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ class auth_plugin_email extends auth_plugin_base {
|
||||
if ($user->confirmed) {
|
||||
return AUTH_CONFIRM_ALREADY;
|
||||
|
||||
} else if ($user->auth != 'email') {
|
||||
} else if ($user->auth != $this->authtype) {
|
||||
return AUTH_CONFIRM_ERROR;
|
||||
|
||||
} else if ($user->secret == $confirmsecret) { // They have provided the secret key to get in
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
print_auth_lock_options('email', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
|
||||
print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user