Merge pull request #7030 from Piccirello/failed-attempts-auth

Skip webui username/password check for active sessions
This commit is contained in:
Mike Tzou 2017-07-05 15:02:24 +08:00 committed by GitHub
commit 726e9f0774

View file

@ -172,6 +172,11 @@ void WebApplication::action_public_webui()
void WebApplication::action_public_login()
{
if (sessionActive()) {
print(QByteArray("Ok."), Http::CONTENT_TYPE_TXT);
return;
}
const Preferences* const pref = Preferences::instance();
QCryptographicHash md5(QCryptographicHash::Md5);