mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add custom domains (#314)
This commit is contained in:
committed by
GitHub
parent
d47c70f576
commit
d17b45c5c4
@@ -61,10 +61,10 @@ class OAuthsController < ApplicationController
|
||||
|
||||
if user
|
||||
oauth_token = user.generate_oauth_token
|
||||
redirect_to add_subdomain_to(method(:o_auth_sign_in_from_oauth_token_url), nil, {user_id: user.id, token: oauth_token})
|
||||
redirect_to get_url_for(method(:o_auth_sign_in_from_oauth_token_url), options: { user_id: user.id, token: oauth_token })
|
||||
else
|
||||
flash[:alert] = I18n.t('errors.o_auth_login_error', name: @o_auth.name)
|
||||
redirect_to add_subdomain_to(method(:new_user_session_url))
|
||||
redirect_to get_url_for(method(:new_user_session_url))
|
||||
end
|
||||
|
||||
elsif reason == 'test'
|
||||
|
||||
Reference in New Issue
Block a user