Add CheckUserPassword() API.

This commit is contained in:
Yang Luo
2021-08-15 21:57:36 +08:00
parent 8674b4853a
commit 398ba19fa5
5 changed files with 19 additions and 3 deletions

View File

@ -101,7 +101,7 @@ func CheckPassword(user *User, password string) string {
}
}
func CheckUserLogin(organization string, username string, password string) (*User, string) {
func CheckUserPassword(organization string, username string, password string) (*User, string) {
user := GetUserByFields(organization, username)
if user == nil {
return nil, "the user does not exist, please sign up first"