mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:35:55 +00:00
simplify internal authentication code and bump default algo to SSHA-512
This commit is contained in:
@@ -361,16 +361,6 @@
|
||||
return vsprintf(_ngettext(array_shift($args), array_shift($args), array_shift($args)), $args);
|
||||
}
|
||||
|
||||
function encrypt_password($pass, $salt = '', $mode2 = false) {
|
||||
if ($salt && $mode2) {
|
||||
return "MODE2:" . hash('sha256', $salt . $pass);
|
||||
} else if ($salt) {
|
||||
return "SHA1X:" . sha1("$salt:$pass");
|
||||
} else {
|
||||
return "SHA1:" . sha1($pass);
|
||||
}
|
||||
} // function encrypt_password
|
||||
|
||||
function init_plugins() {
|
||||
PluginHost::getInstance()->load(Config::get(Config::PLUGINS), PluginHost::KIND_ALL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user