1
0
Fork 0
forked from lthn/blockchain

removing backslash from allowed password symbols

This commit is contained in:
sowle 2024-11-04 19:46:43 +01:00
parent 422c7f2a3a
commit 0dd79e77c4
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -3632,7 +3632,7 @@ namespace currency
return true;
}
//------------------------------------------------------------------
#define PASSWORD_REGEXP R"([A-Za-z0-9~!?@#$%^&*_+|{}\[\]()<>:;"'\-=\\/.,]{0,40})"
#define PASSWORD_REGEXP R"([A-Za-z0-9~!?@#$%^&*_+|{}\[\]()<>:;"'\-=/.,]{0,40})"
bool validate_password(const std::string& password)
{
// OLD: static const std::string allowed_password_symbols = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!?@#$%^&*_+|{}[]()<>:;\"'-=\\/.,";