mirror of https://github.com/nymea/nymea.git
add @ as allowed char
parent
4fadd37938
commit
fa70780b43
|
|
@ -421,7 +421,7 @@ bool UserManager::validatePassword(const QString &password) const
|
|||
if (!password.contains(QRegExp("[0-9]"))) {
|
||||
return false;
|
||||
}
|
||||
if (!password.contains(QRegExp("[!\"§$%&/()#*\\'+\\.\\\\]"))) {
|
||||
if (!password.contains(QRegExp("[!\"§$%&/()#*\\'+\\.\\\\@]"))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ void TestUsermanager::createUser_data() {
|
|||
QTest::newRow("foo@bar.baz, #1-Nymea-is-awesome, NoError") << "foo@bar.baz" << "#1-Nymea-is-awesome" << UserManager::UserErrorNoError;
|
||||
QTest::newRow("foo@bar.baz, Bla1234.a, NoError") << "foo@bar.baz" << "Bla1234.a" << UserManager::UserErrorNoError;
|
||||
QTest::newRow("foo@bar.baz, Bla1234\\a, NoError") << "foo@bar.baz" << "Bla1234\\a" << UserManager::UserErrorNoError;
|
||||
QTest::newRow("foo@bar.baz, Bla1234@a, NoError") << "foo@bar.baz" << "Bla1234@a" << UserManager::UserErrorNoError;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue