Preparation to support new login2 page authentication
@@ -2555,7 +2555,7 @@ int DeRestPluginPrivate::deletePassword(const ApiRequest &req, ApiResponse &rsp)
// reset only allowed for certain referers
bool ok = true;
QString referer = req.hdr.value(QLatin1String("Referer"));
- if (referer.isEmpty() || !referer.contains(QLatin1String("login.html")))
+ if (referer.isEmpty() || !(referer.contains(QLatin1String("login.html")) || referer.contains(QLatin1String("login2.html"))))
{
ok = false;
}
