mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix hash update.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user