fix sign up

This commit is contained in:
Torsten 2023-01-24 10:40:52 +02:00
parent 50ef0cb0f4
commit a51a20c88f
2 changed files with 7 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -10,15 +10,18 @@ class RegistrationsController < Devise::RegistrationsController
build_resource
super
end
# POST /resource
def create
if message = math_check
puts message
flash.now.alert = message
build_resource(sign_up_params)
render :new
else
super
end
super
end
# GET /resource/edit
def edit_email
build_resource
puts "EDIT"
@ -28,7 +31,7 @@ class RegistrationsController < Devise::RegistrationsController
build_resource
super
end
# PUT /resource
def update
puts "UPDATE"
super