Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate user when no activation is required #20229

Merged
merged 1 commit into from
May 17, 2021

Conversation

pradpnayak
Copy link
Contributor

@pradpnayak pradpnayak commented May 5, 2021

Overview

https://chat.civicrm.org/civicrm/pl/pda9f67bofn17decw35jpztf1h

Before

Before - there’s no way to create an active user with email validation enabled in Drupal.

After

After - any user created on a site that doesn’t require admin approval is active.

Technical Details

Comments

@civibot
Copy link

civibot bot commented May 5, 2021

(Standard links)

@civibot civibot bot added the master label May 5, 2021
@@ -49,7 +49,7 @@ public function createUser(&$params, $mail) {
if ($user_register_conf != 'visitors' && !$user->hasPermission('administer users')) {
$account->block();
}
elseif ($verify_mail_conf) {
elseif {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
elseif {
else {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed, you are really quick. I was about to push the change

@eileenmcnaughton
Copy link
Contributor

@pradpnayak @MikeyMJCO can we get a bit more explanation on this PR - it seems to be agreed between you which is fairly compelling to me but the explanation is lacking

@eileenmcnaughton
Copy link
Contributor

@pradpnayak @MikeyMJCO ping

@homotechsual
Copy link
Contributor

Before - there’s no way to create an active user with email validation enabled in Drupal.

After - any user created on a site that doesn’t require admin approval is active.

@eileenmcnaughton
Copy link
Contributor

Thanks I added that into the template & am taking that as your please-merge review

@eileenmcnaughton eileenmcnaughton merged commit d0265c2 into civicrm:master May 17, 2021
@pradpnayak pradpnayak deleted the usercreate branch December 31, 2021 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants