Added @ character to the list of valid username characters.

This commit is contained in:
Scott Roeder 2015-07-21 12:27:24 +04:00
parent b4de69ed5c
commit 34bbeab314

View file

@ -1019,7 +1019,7 @@ static pam_handle_t *internalLogin(struct Service *service, struct Utmp *utmp,
if (!((ch >= '0' && ch <= '9') ||
(ch >= 'A' && ch <= 'Z') ||
(ch >= 'a' && ch <= 'z') ||
ch == '-' || ch == '_' || ch == '.')) {
ch == '-' || ch == '_' || ch == '.' || ch == '@')) {
goto invalid_user_name;
}
}