use root_url instead of relative_root to satisfy test

This commit is contained in:
Josh 2017-07-24 15:28:10 -04:00
parent f4e9e01782
commit f40ef121c8
1 changed files with 3 additions and 3 deletions

View File

@ -43,11 +43,11 @@ class SessionsController < ApplicationController
def auth_failure
if params[:message] == 'invalid_credentials'
redirect_to relative_root, flash: {danger: t('invalid_login') }
redirect_to root_path, flash: {danger: t('invalid_login') }
elsif params[:message] == 'ldap_error'
redirect_to relative_root, flash: {danger: t('ldap_error') }
redirect_to root_path, flash: {danger: t('ldap_error') }
else
redirect_to relative_root
redirect_to root_path
end
end
end