mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 06:13:43 +01:00
Fix confirmations_controller
This commit is contained in:
parent
ab5f450700
commit
0c3a337e04
1 changed files with 4 additions and 6 deletions
|
@ -6,12 +6,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
|
||||||
before_action :set_user, only: [:finish_signup]
|
before_action :set_user, only: [:finish_signup]
|
||||||
before_action :set_pack
|
before_action :set_pack
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def set_pack
|
|
||||||
use_pack 'auth'
|
|
||||||
end
|
|
||||||
|
|
||||||
# GET/PATCH /users/:id/finish_signup
|
# GET/PATCH /users/:id/finish_signup
|
||||||
def finish_signup
|
def finish_signup
|
||||||
return unless request.patch? && params[:user]
|
return unless request.patch? && params[:user]
|
||||||
|
@ -26,6 +20,10 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def set_pack
|
||||||
|
use_pack 'auth'
|
||||||
|
end
|
||||||
|
|
||||||
def set_user
|
def set_user
|
||||||
@user = current_user
|
@user = current_user
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue