mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Fix registration fails silently when there are errors (#1455)
* Fix registration fails silently with long passwords * Add maxlength
This commit is contained in:
parent
31ecd3ccd4
commit
278d04a73a
3 changed files with 10 additions and 2 deletions
|
@ -28,7 +28,7 @@ class RegistrationsController < ApplicationController
|
|||
@session = create_session_for(@user)
|
||||
redirect_to root_path, notice: t(".success")
|
||||
else
|
||||
render :new, status: :unprocessable_entity
|
||||
render :new, status: :unprocessable_entity, alert: t(".failure")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue