also property escape the . in the token verifier
This commit is contained in:
parent
d1fa341650
commit
ba58b0f100
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user