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

Version Path
gb_mapfish_appserver-2.0.0 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.1.1 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.1.0 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.6 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.5 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.4 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.3 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.2 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.1 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-1.0.0 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.7 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.6 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.5 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.4 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.3 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.2 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.1 app/controllers/token_authentications_controller.rb
gb_mapfish_appserver-0.9.0 app/controllers/token_authentications_controller.rb