module Authstrategies::Helpers
Public Instance Methods
authenticate!(strategy = :password)
click to toggle source
# File lib/authstrategies/helpers.rb, line 3 def authenticate! strategy = :password env['warden'].authenticate! strategy end
authenticated?()
click to toggle source
# File lib/authstrategies/helpers.rb, line 7 def authenticated? env['warden'].authenticated? end
current_user()
click to toggle source
# File lib/authstrategies/helpers.rb, line 11 def current_user env['warden'].user end
login_path()
click to toggle source
# File lib/authstrategies/helpers.rb, line 19 def login_path '/login' end
logout()
click to toggle source
# File lib/authstrategies/helpers.rb, line 15 def logout env['warden'].logout end
logout_path()
click to toggle source
# File lib/authstrategies/helpers.rb, line 23 def logout_path '/logout' end
signup_path()
click to toggle source
# File lib/authstrategies/helpers.rb, line 27 def signup_path '/signup' end