Remove unuused parameters
This commit removes names for unusued parameters where they are no longer needed.
This commit is contained in:
parent
b45233b87c
commit
8ad8cf7994
24 changed files with 30 additions and 30 deletions
|
|
@ -31,7 +31,7 @@ var (
|
|||
errPasswordSet = errors.New("password was updated")
|
||||
)
|
||||
|
||||
func (panel *UserPanel) routePassword(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) routePassword(context.Context) http.Handler {
|
||||
tpl := passwordTemplate.Prepare(panel.dependencies.Templating)
|
||||
|
||||
return &form.Form[struct{}]{
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ type SSHTemplateContext struct {
|
|||
Services []ssh2.Intercept
|
||||
}
|
||||
|
||||
func (panel *UserPanel) sshRoute(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) sshRoute(context.Context) http.Handler {
|
||||
tpl := sshTemplate.Prepare(
|
||||
panel.dependencies.Templating,
|
||||
templating.Crumbs(
|
||||
|
|
@ -143,7 +143,7 @@ type addKeyResult struct {
|
|||
Key ssh.PublicKey
|
||||
}
|
||||
|
||||
func (panel *UserPanel) sshAddRoute(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) sshAddRoute(context.Context) http.Handler {
|
||||
tpl := sshAddTemplate.Prepare(
|
||||
panel.dependencies.Templating,
|
||||
templating.Crumbs(
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ type TokenTemplateContext struct {
|
|||
Tokens []models.Token
|
||||
}
|
||||
|
||||
func (panel *UserPanel) tokensRoute(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) tokensRoute(context.Context) http.Handler {
|
||||
tpl := tokensTemplate.Prepare(
|
||||
panel.dependencies.Templating,
|
||||
templating.Crumbs(
|
||||
|
|
@ -122,7 +122,7 @@ type TokenCreateContext struct {
|
|||
Token *models.Token
|
||||
}
|
||||
|
||||
func (panel *UserPanel) tokensAddRoute(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) tokensAddRoute(context.Context) http.Handler {
|
||||
tplForm := tokensAddTemplate.Prepare(
|
||||
panel.dependencies.Templating,
|
||||
templating.Crumbs(
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ var totpEnable = templating.Parse[userFormContext](
|
|||
templating.Assets(assets.AssetsUser),
|
||||
)
|
||||
|
||||
func (panel *UserPanel) routeTOTPEnable(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) routeTOTPEnable(context.Context) http.Handler {
|
||||
tpl := totpEnable.Prepare(panel.dependencies.Templating)
|
||||
|
||||
return &form.Form[struct{}]{
|
||||
|
|
@ -88,7 +88,7 @@ type totpEnrollContext struct {
|
|||
TOTPURL template.URL
|
||||
}
|
||||
|
||||
func (panel *UserPanel) routeTOTPEnroll(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) routeTOTPEnroll(context.Context) http.Handler {
|
||||
tpl := totpEnrollTemplate.Prepare(
|
||||
panel.dependencies.Templating,
|
||||
templating.Crumbs(
|
||||
|
|
@ -174,7 +174,7 @@ var totpDisableTemplate = templating.Parse[userFormContext](
|
|||
templating.Assets(assets.AssetsUser),
|
||||
)
|
||||
|
||||
func (panel *UserPanel) routeTOTPDisable(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) routeTOTPDisable(context.Context) http.Handler {
|
||||
tpl := totpDisableTemplate.Prepare(panel.dependencies.Templating)
|
||||
|
||||
return &form.Form[struct{}]{
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ func (g GrantWithURL) AdminURL() template.URL {
|
|||
return template.URL("/admin/instance/" + g.Slug)
|
||||
}
|
||||
|
||||
func (panel *UserPanel) routeUser(ctx context.Context) http.Handler {
|
||||
func (panel *UserPanel) routeUser(context.Context) http.Handler {
|
||||
actions := []component.MenuItem{
|
||||
menuChangePassword,
|
||||
menuTOTPAction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue