mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Renew Rails session ID on successful registration
This commit is contained in:
parent
3f6a36168f
commit
6a2f248fe4
@ -141,6 +141,11 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|||||||
|
|
||||||
def sign_up(resource_name, resource)
|
def sign_up(resource_name, resource)
|
||||||
clear_captcha!
|
clear_captcha!
|
||||||
|
|
||||||
|
old_session_values = session.to_hash
|
||||||
|
reset_session
|
||||||
|
session.update old_session_values.except('session_id')
|
||||||
|
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user