File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2727func TwoFactor (ctx * context.Context ) {
2828 ctx .Data ["Title" ] = ctx .Tr ("twofa" )
2929
30- // Check auto-auth .
30+ // Check auto-login .
3131 if checkAutoLogin (ctx ) {
3232 return
3333 }
@@ -100,7 +100,7 @@ func TwoFactorPost(ctx *context.Context) {
100100func TwoFactorScratch (ctx * context.Context ) {
101101 ctx .Data ["Title" ] = ctx .Tr ("twofa_scratch" )
102102
103- // Check auto-auth .
103+ // Check auto-login .
104104 if checkAutoLogin (ctx ) {
105105 return
106106 }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const (
4444 TplActivate base.TplName = "user/auth/activate"
4545)
4646
47- // AutoSignIn reads cookie and try to auto-
47+ // AutoSignIn reads cookie and try to auto-login.
4848func AutoSignIn (ctx * context.Context ) (bool , error ) {
4949 if ! db .HasEngine {
5050 return false , nil
@@ -122,7 +122,7 @@ func resetLocale(ctx *context.Context, u *user_model.User) error {
122122}
123123
124124func checkAutoLogin (ctx * context.Context ) bool {
125- // Check auto-
125+ // Check auto-login
126126 isSucceed , err := AutoSignIn (ctx )
127127 if err != nil {
128128 ctx .ServerError ("AutoSignIn" , err )
@@ -149,7 +149,7 @@ func checkAutoLogin(ctx *context.Context) bool {
149149func SignIn (ctx * context.Context ) {
150150 ctx .Data ["Title" ] = ctx .Tr ("sign_in" )
151151
152- // Check auto-
152+ // Check auto-login
153153 if checkAutoLogin (ctx ) {
154154 return
155155 }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var tplU2F base.TplName = "user/auth/u2f"
2727func U2F (ctx * context.Context ) {
2828 ctx .Data ["Title" ] = ctx .Tr ("twofa" )
2929 ctx .Data ["RequireU2F" ] = true
30- // Check auto-auth .
30+ // Check auto-login .
3131 if checkAutoLogin (ctx ) {
3232 return
3333 }
You can’t perform that action at this time.
0 commit comments