mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 11:41:29 +00:00
save module user authenticated with, only allow password change if module is 'internal'
This commit is contained in:
@@ -693,7 +693,10 @@
|
||||
|
||||
$user_id = (int) $authenticator->authenticate($login, $password);
|
||||
|
||||
if ($user_id) break;
|
||||
if ($user_id) {
|
||||
$_SESSION["auth_module"] = $module;
|
||||
break;
|
||||
}
|
||||
|
||||
} else {
|
||||
print T_sprintf("Fatal: authentication module %s not found.", $module);
|
||||
@@ -734,7 +737,6 @@
|
||||
|
||||
$_SESSION["hide_hello"] = true;
|
||||
$_SESSION["hide_logout"] = true;
|
||||
$_SESSION["hide_change_password"] = true;
|
||||
|
||||
if (!$_SESSION["csrf_token"]) {
|
||||
$_SESSION["csrf_token"] = sha1(uniqid(rand(), true));
|
||||
|
||||
Reference in New Issue
Block a user