mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Add user soft deletion.
This commit is contained in:
@ -102,7 +102,7 @@ func CheckPassword(user *User, password string) string {
|
||||
|
||||
func CheckUserPassword(organization string, username string, password string) (*User, string) {
|
||||
user := GetUserByFields(organization, username)
|
||||
if user == nil {
|
||||
if user == nil || user.IsDeleted == true {
|
||||
return nil, "the user does not exist, please sign up first"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user