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);
|
print_error($exception->errorcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isloggedin()) {
|
if (isloggedin() && $SESSION->userid != $key->userid) {
|
||||||
if ($SESSION->userid != $key->userid) {
|
require_logout();
|
||||||
require_logout();
|
|
||||||
$this->user_login_userkey();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->userkeymanager->delete_keys($key->userid);
|
$this->userkeymanager->delete_keys($key->userid);
|
||||||
|
|
Loading…
Reference in a new issue