Skip to content

Commit

Permalink
Merge pull request #208 from alex-benoit/patch-1
Browse files Browse the repository at this point in the history
Add default error code to render calls
  • Loading branch information
gaffneyc authored Dec 18, 2024
2 parents 42a7792 + 22ac296 commit bc16aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class SessionsController < ApplicationController
redirect_to user
else
flash.now[:message] = "Please try again."
render :new
render :new, status: :unprocessable_entity
end
end

Expand All @@ -277,7 +277,7 @@ class SessionsController < ApplicationController
redirect_to result.user
else
flash.now[:message] = t(result.message)
render :new
render :new, status: :unprocessable_entity
end
end

Expand Down

0 comments on commit bc16aaf

Please sign in to comment.