Skip to content

Commit

Permalink
Merge pull request #67 from kehh/allowShibToCreateUsers
Browse files Browse the repository at this point in the history
NOJIRA Support user creation in Shibboleth authentication adapter
  • Loading branch information
collectiveaccess authored Feb 7, 2023
2 parents a6b2e55 + 27df40a commit cb5d4c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/lib/Auth/Adapters/Shibboleth.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ public function authenticate($username, $password = '', $options=null) {
$map = array_flip($this->auth_config->get('shibboleth_field_map'));
$uid = array_shift($attrs[$map['uid']]);
if (!$uid) { return false; }
if (ca_users::find(['user_name' => $uid], ['returnAs' => 'count']) > 0) {
return true;
}
return false;
return true;
}
# --------------------------------------------------------------------------------
/**
Expand Down

0 comments on commit cb5d4c9

Please sign in to comment.