Add User's IsForbidden.

This commit is contained in:
Yang Luo
2021-05-02 12:18:28 +08:00
parent 79f1c62ff7
commit 82f4f542ed
8 changed files with 35 additions and 4 deletions

View File

@ -65,6 +65,10 @@ func CheckUserLogin(organization string, username string, password string) (*Use
return nil, "password incorrect"
}
if user.IsForbidden {
return nil, "the user is forbidden to sign in, please contact the administrator"
}
return user, ""
}