Simplify code
This commit is contained in:
parent
1be8efccb3
commit
75f5fa7e15
1 changed files with 2 additions and 5 deletions
5
auth.php
5
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) {
|
||||
if (isloggedin() && $SESSION->userid != $key->userid) {
|
||||
require_logout();
|
||||
$this->user_login_userkey();
|
||||
}
|
||||
}
|
||||
|
||||
$this->userkeymanager->delete_keys($key->userid);
|
||||
|
|
Loading…
Reference in a new issue