Fix hash update.

This commit is contained in:
Yang Luo
2021-05-16 21:22:20 +08:00
parent 4b9ce5f401
commit 45bd3b316b
2 changed files with 16 additions and 4 deletions

View File

@ -58,7 +58,7 @@ func CheckUserSignup(organizationName string, username string, password string,
}
func CheckPassword(user *User, password string) string {
organization := getOrganization("admin", user.Owner)
organization := getOrganizationByUser(user)
if organization.PasswordType == "plain" {
if password == user.Password {