forked from External/greenlight
GRN-88: Fixed some things that Scrutinizer was complaining about (#433)
* Scrutinizer fixes * Moved helper code to concern * Another scrutinizer fix * User controller conflict fix * Another user controller fix * Added include verifier
This commit is contained in:
committed by
Jesus Federico
parent
5e3aa72955
commit
88776eaadb
@ -18,6 +18,7 @@
|
||||
|
||||
class UsersController < ApplicationController
|
||||
include RecordingsHelper
|
||||
include Verifier
|
||||
|
||||
before_action :find_user, only: [:edit, :update, :destroy]
|
||||
before_action :ensure_unauthenticated, only: [:new, :create]
|
||||
@ -141,10 +142,6 @@ class UsersController < ApplicationController
|
||||
@user = User.find_by!(uid: params[:user_uid])
|
||||
end
|
||||
|
||||
def verification_link
|
||||
request.base_url + edit_account_activation_path(token: @user.activation_token, email: @user.email)
|
||||
end
|
||||
|
||||
def ensure_unauthenticated
|
||||
redirect_to current_user.main_room if current_user
|
||||
end
|
||||
|
Reference in New Issue
Block a user