Refactor user to admin and api user

This commit is contained in:
Martin Lensment 2015-02-13 16:17:06 +02:00
parent f3215680d5
commit 037cb57e00
34 changed files with 551 additions and 551 deletions

View file

@ -3,8 +3,8 @@ class SessionsController < Devise::SessionsController
# TODO: Create ID Card login here:
# this is just testing config
# if Rails.env.development? || Rails.env.test?
@user = User.first if params[:user1]
@user = User.second if params[:user2]
@user = AdminUser.first if params[:user1]
@user = AdminUser.second if params[:user2]
return redirect_to :back, alert: 'No user' if @user.blank?