实现登录,编写错误码,实现错误码返回json

This commit is contained in:
F嘉阳
2018-01-30 16:58:12 +08:00
parent 91aba6a592
commit bc720e6270
10 changed files with 155 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>主页</title>
</head>
<body>
<center>
<h1>欢迎访问主页</h1>
</center>
</body>
</html>

View File

@@ -5,6 +5,15 @@
<title>登录</title>
</head>
<body>
<h1>登录系统</h1>
<center>
<h1>登录系统</h1>
<form action="/cms/login/dologin" method="post">
<p>用户名:
<input type="text" name="colname"></p>
<p>密码:
<input type="password" name="colpassword"></p>
<input type="submit" value="登录">
</center>
</form>
</body>
</html>