Sha256: a8be84cd8bd19f4f3bb3e72e14974a096945025ec137a14f3a11e49025f9dbb1
Contents?: true
Size: 535 Bytes
Versions: 18
Compression:
Stored size: 535 Bytes
Contents
# token_authentications_controller.rb class TokenAuthenticationsController < ApplicationController def create #@user = User.criteria.id(params[:user_id]).first @user = User.find(params[:user_id]) @user.reset_authentication_token! redirect_to edit_user_registration_path(@user) end def destroy #@user = User.criteria.id(params[:id]).first @user = User.find(params[:id]) @user.authentication_token = nil @user.save redirect_to edit_user_registration_path(@user) end end
Version data entries
18 entries across 18 versions & 1 rubygems