77 < h3 > 登录</ h3 >
88 < div class ="clearfix "> </ div >
99 </ div >
10- < form id ="signinform " class ="login-form " role ="form " method ="post " action ="${ url_for('home.login')} ">
10+ < form id ="signinform " class ="login-form " role ="form " method ="post " action ="{{ url_for('home.login')} } ">
1111 < div class ="form-group ">
1212 < label class ="control-label " for =""> 第三方登录</ label >
1313 < div class ="thirdparty-login-btns ">
@@ -29,14 +29,15 @@ <h3>登录</h3>
2929 </ div >
3030 </ div >
3131 < div class ="form-group ">
32+ < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} " />
3233 < label class ="control-label " for ="inputEmail "> 邮箱</ label >
33- < input id ="inputEmail " class ="form-control " name ="" type ="text " value ="" type ="email " required ="" tabindex ="1 " name ="email "/>
34+ < input id ="inputEmail " class ="form-control " type ="text " value ="" type ="email " required ="" tabindex ="1 " name ="email "/>
3435 </ div >
3536 < div class ="form-group ">
3637 < label class ="control-label " for ="inputPassword ">
3738 密码(< a tabindex ="4 " href ="/forgotpass "> 忘记密码</ a > )
3839 </ label >
39- < input id ="inputPassword " class ="form-control " name ="" type ="text " value ="" type ="password " required ="" tabindex ="2 " name ="password " />
40+ < input id ="inputPassword " class ="form-control " type ="text " value ="" type ="password " required ="" tabindex ="2 " name ="password " />
4041 </ div >
4142 < div class ="form-group ">
4243 < button id ="loginBtn " class ="login-btn btn-default " tabindex ="3 " type ="submit ">
@@ -58,7 +59,7 @@ <h3>注册</h3>
5859 </ div >
5960 </ div >
6061
61- < form id ="signupform " class ="login-form " role ="form " method ="post " action ="${ url_for('home.register')} ">
62+ < form id ="signupform " class ="login-form " role ="form " method ="post " action ="{{ url_for('home.register')} } ">
6263 < div class ="form-group ">
6364 < label class ="control-label " for ="">
6465 第三方注册
@@ -83,21 +84,22 @@ <h3>注册</h3>
8384 </ div >
8485
8586 < div class ="form-group ">
87+ < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} " />
8688 < label class ="control-label " for ="inputUsername ">
8789 用户名
8890 </ label >
8991 < b class ="has-required " data-title ="必填 "> Required</ b >
90- < input id ="inputUsername " class ="form-control " name ="" type ="text " value ="" type ="text " name ="username " tabindex ="1 "/>
92+ < input id ="inputUsername " class ="form-control " type ="text " value ="" type ="text " name ="username " tabindex ="1 "/>
9193 </ div >
9294 < div class ="form-group ">
9395 < label class ="control-label " for ="inputEmail "> 邮箱</ label >
9496 < b class ="has-required " data-title ="必填 "> Required</ b >
95- < input id ="inputEmail " class ="form-control " name ="" type ="text " value ="" type ="email " name ="email " tabindex ="2 "/>
97+ < input id ="inputEmail " class ="form-control " type ="text " value ="" type ="email " name ="email " tabindex ="2 "/>
9698 </ div >
9799 < div class ="form-group ">
98100 < label class ="control-label " for ="inputPassword "> 密码</ label >
99101 < b class ="has-required " data-title ="必填,至少 8 位,同时包含数字、小写字母、大写字母 "> Required</ b >
100- < input id ="inputPassword " class ="form-control " name ="" type ="text " value ="" type ="password " name ="password " tabindex ="3 " />
102+ < input id ="inputPassword " class ="form-control " type ="text " value ="" type ="password " name ="password " tabindex ="3 " />
101103 </ div >
102104 < div class ="form-group ">
103105 < button id ="signupBtn " class ="signup-btn btn btn-default " type ="submit " tabindex ="4 " disabled ="disabled " > 注册</ button >
0 commit comments