Skip to content

Commit

Permalink
Resolve lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IniZio committed Oct 7, 2024
1 parent f1d6a0e commit ad62a74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/auth/handler/webapp/authflowv2/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const (
AuthflowV2RouteSettingsMFACreateOOBOTP = "/settings/mfa/create_oob_otp_:channel"
AuthflowV2RouteSettingsMFAEnterOOBOTP = "/settings/mfa/enter_oob_otp"
// nolint: gosec
AuthflowV2RouteSettingsMFAPassword = "/settings/mfa/password"
AuthflowV2RouteSettingsMFAPassword = "/settings/mfa/password"
// nolint: gosec
AuthflowV2RouteSettingsMFAChangePassword = "/settings/mfa/change_password"
AuthflowV2RouteSettingsMFACreateTOTP = "/settings/mfa/create_totp"
AuthflowV2RouteSettingsMFAEnterTOTP = "/settings/mfa/enter_totp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func (h *AuthflowV2SettingsMFACreateOOBOTPHandler) ServeHTTP(w http.ResponseWrit
Channel: channel,
Target: target,
})
if err != nil {
return err
}

redirectURI, err := url.Parse(AuthflowV2RouteSettingsMFAEnterOOBOTP)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ func (h *AuthflowV2SettingsMFACreateTOTPHandler) GetData(r *http.Request, rw htt
}

screenViewModel := AuthflowV2SettingsMFACreateTOTPViewModel{
Token: tokenString,
Secret: totpSecret,
Token: tokenString,
Secret: totpSecret,
// nolint: gosec
ImageURI: htmltemplate.URL(dataURI),
}
viewmodels.Embed(data, screenViewModel)
Expand Down

0 comments on commit ad62a74

Please sign in to comment.