mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Support Email and phone login.
This commit is contained in:
@ -56,9 +56,9 @@ func CheckUserSignup(organization string, username string, password string, disp
|
||||
}
|
||||
|
||||
func CheckUserLogin(organization string, username string, password string) (*User, string) {
|
||||
user := GetUserByField(organization, "name", username)
|
||||
user := GetUserByFields(organization, username)
|
||||
if user == nil {
|
||||
return nil, "username does not exist, please sign up first"
|
||||
return nil, "the user does not exist, please sign up first"
|
||||
}
|
||||
|
||||
if user.Password != password {
|
||||
|
Reference in New Issue
Block a user