Commit 89d2153f authored by Simon Morlat's avatar Simon Morlat

Fix an issue where an invalid SQL request was passed to server because the...

Fix an issue where an invalid SQL request was passed to server because the list of phone numbers (:phones) was empty.
parent c04fcf0b
Pipeline #4218 passed with stages
in 17 minutes and 29 seconds
......@@ -303,9 +303,10 @@ void AuthDbBackend::getUsersWithPhone(list<tuple<string,string,AuthDbListener*>>
break;
}
}
// if we reach here, password wasn't cached: we have to grab the password from the actual backend
getUsersWithPhonesFromBackend(needed_creds);
if (!needed_creds.empty()){
// if we reach here, password wasn't cached: we have to grab the password from the actual backend
getUsersWithPhonesFromBackend(needed_creds);
}
}
void AuthDbBackend::getUsersWithPhonesFromBackend(list<tuple<string,string,AuthDbListener*>> &creds) {
......
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