Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/redmine_oauth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def checked_try_to_login(email, user)
if allowed_domain_for?(email)
try_to_login email, user
else
flash['error'] = l(:notice_domain_not_allowed, :domain => parse_email(email)['domain'])
flash['error'] = l(:notice_domain_not_allowed, :domain => parse_email(email)[:domain])
redirect_to signin_path
end
end
Expand Down Expand Up @@ -82,7 +82,7 @@ def try_to_login email, info
if user.active?
successful_authentication(user)
else
account_pending
account_pending(user)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def allowed_domain_for? email
return unless allowed_domains
allowed_domains = allowed_domains.split
return true if allowed_domains.empty?
allowed_domains.index(parse_email(email)['domain'])
allowed_domains.index(parse_email(email)[:domain])
end
end
end