Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: devopskube/redmine_openid_connect
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: DJTechMo/redmine_openid_connect
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Sep 11, 2023

  1. change login to user_name instead of email

    Mario Anstoots committed Sep 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    011a7d3 View commit details

Commits on Sep 13, 2023

  1. fixed search for user

    Mario Anstoots committed Sep 13, 2023
    Copy the full SHA
    2dad96d View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/redmine_openid_connect/account_controller_patch.rb
6 changes: 3 additions & 3 deletions lib/redmine_openid_connect/account_controller_patch.rb
Original file line number Diff line number Diff line change
@@ -88,13 +88,13 @@ def oic_local_login
end

# Check if there's already an existing user
user = User.find_by_mail(user_info["email"])
user = User.find_by_login(user_info["user_name"])

if user.nil?
if !OicSession.create_user_if_not_exists?
flash.now[:warning] ||= l(:oic_cannot_create_user, value: user_info["email"])
flash.now[:warning] ||= l(:oic_cannot_create_user, value: user_info["user_name"])

logger.warn "Could not create user #{user_info["email"]}, the system is not allowed to create new users through openid"
logger.warn "Could not create user #{user_info["user_name"]}, the system is not allowed to create new users through openid"
flash.now[:warning] += "The system is not allowed to create new users through openid"

return invalid_credentials