Skip to content

Commit 7d0e929

Browse files
committed
Revert unnecessary change
1 parent 931a766 commit 7d0e929

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

routers/web/auth/2fa.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var (
2727
func 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) {
100100
func 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
}

routers/web/auth/auth.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
4848
func 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

124124
func 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 {
149149
func 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
}

routers/web/auth/u2f.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var tplU2F base.TplName = "user/auth/u2f"
2727
func 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
}

0 commit comments

Comments
 (0)