mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Fixes per @okriuchykhin 's request
This commit is contained in:
parent
5e6a4bb69a
commit
d2ed415a25
1 changed files with 8 additions and 10 deletions
|
@ -161,8 +161,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|||
else
|
||||
render :new
|
||||
end
|
||||
else
|
||||
if valid_resource
|
||||
elsif valid_resource
|
||||
super do |resource|
|
||||
# Set the confirmed_at == created_at IF not using email confirmations
|
||||
unless Rails.configuration.x.enable_email_confirmations
|
||||
|
@ -174,7 +173,6 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|||
render :new
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue