Simplify code
This commit is contained in:
parent
1be8efccb3
commit
75f5fa7e15
1 changed files with 2 additions and 5 deletions
7
auth.php
7
auth.php
|
@ -157,11 +157,8 @@ class auth_plugin_userkey extends auth_plugin_base {
|
|||
print_error($exception->errorcode);
|
||||
}
|
||||
|
||||
if (isloggedin()) {
|
||||
if ($SESSION->userid != $key->userid) {
|
||||
require_logout();
|
||||
$this->user_login_userkey();
|
||||
}
|
||||
if (isloggedin() && $SESSION->userid != $key->userid) {
|
||||
require_logout();
|
||||
}
|
||||
|
||||
$this->userkeymanager->delete_keys($key->userid);
|
||||
|
|
Loading…
Reference in a new issue