This website works better with JavaScript.
Home
Explore
Help
Sign In
SmartCanteen
/
smart_canteen
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update
add_mode
DengBiao
1 year ago
parent
ab6c7f5c4c
commit
8d1e833d2f
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/admin/hdl/hdl_login.go
+ 4
- 0
app/admin/hdl/hdl_login.go
View File
@@ -27,6 +27,10 @@ func Login(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err)
return
}
if admin == nil {
e.OutErr(c, e.ERR_NO_DATA, "账号不存在!")
return
}
if utils.Md5(req.PassWord) != admin.Password {
e.OutErr(c, e.ERR_INVALID_ARGS, "密码错误")
return
Write
Preview
Loading…
Cancel
Save