Skip to content

Commit

Permalink
fix inconsistent route name
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Feb 2, 2024
1 parent 6f67280 commit 3877d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def pushover_callback
redirect_to "/settings"
end

def mastodon_auth
def mastodon_authentication
app = MastodonApp.find_or_register(params[:mastodon_instance_name])
redirect_to app.oauth_auth_url, allow_other_host: true
end
Expand Down
4 changes: 1 addition & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,9 @@
:as => "twofa_verify"
post "/settings/2fa_update" => "settings#twofa_update",
:as => "twofa_update"
get "/settings/mastodon_authentication" => "settings#mastodon_authentication"

post "/settings/pushover_auth" => "settings#pushover_auth"
get "/settings/pushover_callback" => "settings#pushover_callback"
get "/settings/mastodon_auth" => "settings#mastodon_auth"
get "/settings/mastodon_authentication" => "settings#mastodon_authentication"
get "/settings/mastodon_callback" => "settings#mastodon_callback"
post "/settings/mastodon_disconnect" => "settings#mastodon_disconnect"
get "/settings/github_auth" => "settings#github_auth"
Expand Down

0 comments on commit 3877d3f

Please sign in to comment.