修复登录bug

This commit is contained in:
hoteas
2022-08-11 10:41:35 +08:00
parent 97cca14b45
commit 64daf04f35
+5 -1
View File
@@ -675,11 +675,15 @@ var TptProject = Proj{
where := Map{"name": name}
if that.MakeCodeRouter[hotimeName].TableColumns[fileConfig.GetString("table")]["phone"] != nil {
where["phone"] = name
where = Map{"AND": Map{"OR": where, "password": Md5(password)}}
where = Map{"OR": where, "password": Md5(password)}
} else {
where["password"] = Md5(password)
}
if len(where) > 1 {
where = Map{"AND": where}
}
user := that.Db.Get(fileConfig.GetString("table"), "*", where)
if user == nil {