@@ -32,7 +32,7 @@ func RegenerateScratchTwoFactor(ctx *context.Context) {
32
32
t , err := login .GetTwoFactorByUID (ctx .User .ID )
33
33
if err != nil {
34
34
if login .IsErrTwoFactorNotEnrolled (err ) {
35
- ctx .Flash .Error (ctx .Tr ("setting .twofa_not_enrolled" ))
35
+ ctx .Flash .Error (ctx .Tr ("settings .twofa_not_enrolled" ))
36
36
ctx .Redirect (setting .AppSubURL + "/user/settings/security" )
37
37
}
38
38
ctx .ServerError ("SettingsTwoFactor: Failed to GetTwoFactorByUID" , err )
@@ -62,7 +62,7 @@ func DisableTwoFactor(ctx *context.Context) {
62
62
t , err := login .GetTwoFactorByUID (ctx .User .ID )
63
63
if err != nil {
64
64
if login .IsErrTwoFactorNotEnrolled (err ) {
65
- ctx .Flash .Error (ctx .Tr ("setting .twofa_not_enrolled" ))
65
+ ctx .Flash .Error (ctx .Tr ("settings .twofa_not_enrolled" ))
66
66
ctx .Redirect (setting .AppSubURL + "/user/settings/security" )
67
67
}
68
68
ctx .ServerError ("SettingsTwoFactor: Failed to GetTwoFactorByUID" , err )
@@ -150,7 +150,7 @@ func EnrollTwoFactor(ctx *context.Context) {
150
150
if t != nil {
151
151
// already enrolled - we should redirect back!
152
152
log .Warn ("Trying to re-enroll %-v in twofa when already enrolled" , ctx .User )
153
- ctx .Flash .Error (ctx .Tr ("setting .twofa_is_enrolled" ))
153
+ ctx .Flash .Error (ctx .Tr ("settings .twofa_is_enrolled" ))
154
154
ctx .Redirect (setting .AppSubURL + "/user/settings/security" )
155
155
return
156
156
}
@@ -175,7 +175,7 @@ func EnrollTwoFactorPost(ctx *context.Context) {
175
175
t , err := login .GetTwoFactorByUID (ctx .User .ID )
176
176
if t != nil {
177
177
// already enrolled
178
- ctx .Flash .Error (ctx .Tr ("setting .twofa_is_enrolled" ))
178
+ ctx .Flash .Error (ctx .Tr ("settings .twofa_is_enrolled" ))
179
179
ctx .Redirect (setting .AppSubURL + "/user/settings/security" )
180
180
return
181
181
}
0 commit comments