Remove GetOrganizationByName().

This commit is contained in:
Yang Luo
2021-05-16 22:58:30 +08:00
parent e6862713bb
commit 6508d96162
5 changed files with 8 additions and 21 deletions

View File

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