Skip to content
Snippets Groups Projects

Keep the status if it has been set by an upstream subscriber

Merged Claudiu Cristea requested to merge issue/cas-3450140:3450140-status-property-value into 2.x
3 files
+ 22
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -168,7 +168,8 @@ class CasUserManager {
public function register($authname, $local_username, array $property_values = []) {
$property_values['name'] = $local_username;
$property_values['pass'] = $this->randomPassword();
$property_values['status'] = (int) !$this->isAdminApprovalNeeded();
// Respect a previous status set by any of the upstream subscribers.
$property_values['status'] ??= (int) !$this->isAdminApprovalNeeded();
try {
$user = $this->externalAuth->register($authname, $this->provider, $property_values);
Loading