also property escape the . in the token verifier

This commit is contained in:
Michael Zanetti 2018-08-06 23:05:27 +02:00
parent d1fa341650
commit ba58b0f100

View File

@ -429,7 +429,7 @@ bool UserManager::validatePassword(const QString &password) const
bool UserManager::validateToken(const QByteArray &token) const
{
QRegExp validator(QRegExp("(^[a-zA-Z0-9_.+-/=]+$)"));
QRegExp validator(QRegExp("(^[a-zA-Z0-9_\\.+-/=]+$)"));
return validator.exactMatch(token);
}