mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Fix registration fails silently when there are errors (#1455)
* Fix registration fails silently with long passwords * Add maxlength
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user