forked from treehouse/mastodon
Renew Rails session ID on successful registration
parent
3f6a36168f
commit
6a2f248fe4
|
@ -141,6 +141,11 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|||
|
||||
def sign_up(resource_name, resource)
|
||||
clear_captcha!
|
||||
|
||||
old_session_values = session.to_hash
|
||||
reset_session
|
||||
session.update old_session_values.except('session_id')
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue