Commit f2507711 authored by Mickaël Turnel's avatar Mickaël Turnel

Fix compatibility issue with old soci request default value

TODO: find a better fix
parent 36354e91
......@@ -190,7 +190,7 @@ void SociAuthDB::getPasswordWithPool(const std::string &id, const std::string &d
passwd_algo_t pass;
/* If algos is empty then the request contained only the password column */
if (algos[i].empty()) {
if (algos[i].empty() || (algos[i] != "CLRTXT" && algos[i] != "MD5" && algos[i] != "SHA-256")) {
pass.algo = "MD5";
if (hashed_passwd) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment