Commit 17004ce3 by Torkel Ödegaard

Fixed issue with login by username and uppercase letters in username, #1484

parent 596ce18a
......@@ -139,7 +139,7 @@ func GetUserByLogin(query *m.GetUserByLoginQuery) error {
if strings.Contains(query.LoginOrEmail, "@") {
user = &m.User{Email: query.LoginOrEmail}
} else {
user = &m.User{Login: strings.ToLower(query.LoginOrEmail)}
user = &m.User{Login: query.LoginOrEmail}
}
has, err := x.Get(user)
......
input[type=text].ng-invalid {
input[type=text].ng-dirty.ng-invalid {
box-shadow: inset 0 0px 7px @red;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment