Skip to content

Commit 53dd70c

Browse files
1klapbyroot
authored andcommitted
Use status code 303 for redirect in destroy action
1 parent b132744 commit 53dd70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/authentication/templates/app/controllers/sessions_controller.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class SessionsController < ApplicationController
1616

1717
def destroy
1818
terminate_session
19-
redirect_to new_session_path
19+
redirect_to new_session_path, status: :see_other
2020
end
2121
end

0 commit comments

Comments
 (0)