app/controllers/password_resets_controller.rb
#Confirms the user is valid i.e. exists, activated and authenticated
Confirms the user is valid i.e. exists, activated and authenticated
Confirms the user is valid i . e . exists activated and authenticated
def valid_user
  		unless (@user && @user.activated? &&@user.authenticated?(:reset, params[:id]))
  			redirect_to root_url
  		end
  	end
def valid_user unless ( @user && @user . activated? && @user . authenticated? ( :reset , params [ :id ] ) ) redirect_to root_url end end
Confirms the user is valid i.e.
Confirms the user is valid i . e .