File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 27
27
func TwoFactor (ctx * context.Context ) {
28
28
ctx .Data ["Title" ] = ctx .Tr ("twofa" )
29
29
30
- // Check auto-auth .
30
+ // Check auto-login .
31
31
if checkAutoLogin (ctx ) {
32
32
return
33
33
}
@@ -100,7 +100,7 @@ func TwoFactorPost(ctx *context.Context) {
100
100
func TwoFactorScratch (ctx * context.Context ) {
101
101
ctx .Data ["Title" ] = ctx .Tr ("twofa_scratch" )
102
102
103
- // Check auto-auth .
103
+ // Check auto-login .
104
104
if checkAutoLogin (ctx ) {
105
105
return
106
106
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const (
44
44
TplActivate base.TplName = "user/auth/activate"
45
45
)
46
46
47
- // AutoSignIn reads cookie and try to auto-
47
+ // AutoSignIn reads cookie and try to auto-login.
48
48
func AutoSignIn (ctx * context.Context ) (bool , error ) {
49
49
if ! db .HasEngine {
50
50
return false , nil
@@ -122,7 +122,7 @@ func resetLocale(ctx *context.Context, u *user_model.User) error {
122
122
}
123
123
124
124
func checkAutoLogin (ctx * context.Context ) bool {
125
- // Check auto-
125
+ // Check auto-login
126
126
isSucceed , err := AutoSignIn (ctx )
127
127
if err != nil {
128
128
ctx .ServerError ("AutoSignIn" , err )
@@ -149,7 +149,7 @@ func checkAutoLogin(ctx *context.Context) bool {
149
149
func SignIn (ctx * context.Context ) {
150
150
ctx .Data ["Title" ] = ctx .Tr ("sign_in" )
151
151
152
- // Check auto-
152
+ // Check auto-login
153
153
if checkAutoLogin (ctx ) {
154
154
return
155
155
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var tplU2F base.TplName = "user/auth/u2f"
27
27
func U2F (ctx * context.Context ) {
28
28
ctx .Data ["Title" ] = ctx .Tr ("twofa" )
29
29
ctx .Data ["RequireU2F" ] = true
30
- // Check auto-auth .
30
+ // Check auto-login .
31
31
if checkAutoLogin (ctx ) {
32
32
return
33
33
}
You can’t perform that action at this time.
0 commit comments