rb-
rb-

Reputation: 2365

Devise 401 response code on failed password

I'm using Rails 4.1.8 and Devise 3.4.1. When a wrong username/password combo is used the resulting page is loaded with a 200 response. I want this response to use response code 401.

How can I make this change?

Upvotes: 1

Views: 529

Answers (1)

katafrakt
katafrakt

Reputation: 2488

You have to use custom session controller for devise. See "Configuring controllers" section of the readme.

Upvotes: 1

Related Questions