Provide a helper to point to sign up/in for different configs

This commit is contained in:
Henne Vogelsang 2014-11-12 10:20:53 +01:00
parent 2c98ba9711
commit a9581445f3
2 changed files with 17 additions and 1 deletions

View file

@ -211,4 +211,20 @@ module ApplicationHelper
false
end
end
def sign_in_path
if CONFIG['authentication']['ichain']['enabled']
new_user_ichain_session_path
else
new_user_session_path
end
end
def sign_up_path
if CONFIG['authentication']['ichain']['enabled']
new_user_ichain_registration_path
else
new_user_registration_path
end
end
end