Email verification switch
- Edited
Puggo Glad to hear! Although...if anyone tries to look for this extension on Extiverse, they'll have some trouble since this isn't marked as compatible with beta 16. I'll try to submit a PR to fix the required Flarum version to give it search visibility on Extiverse
Edit: Annnnnnnnnd done ️ isaced/flarum-ext-email-verification-switch3
Works perfectly in 0.16. It is a nice extension for new forums to easy registration of new users. When every new user is an important asset.
Ralkage hi. I am using flarum verision 1.0.2
and here is my composer result:
root@php-7.4.20 in /shared/httpd/vergi/htdocs $ composer require isaced/flarum-ext-email-verification-switch
Using version ^0.1.4 for isaced/flarum-ext-email-verification-switch
./composer.json has been updated
Running composer update isaced/flarum-ext-email-verification-switch
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires isaced/flarum-ext-email-verification-switch ^0.1.4 -> satisfiable by isaced/flarum-ext-email-verification-switch[0.1.4].
- isaced/flarum-ext-email-verification-switch 0.1.4 requires flarum/core ^0.1.0-beta.16 -> found flarum/core[v0.1.0-beta.16] but it does not match your minimum-stability.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
- Edited
elvish_h while I work on a PR, here is a workaround that you can add to your root Flarum install's extend.php
file that will achieve the same as if you were to install this extension
use Flarum\Extend;
use Flarum\User\Event\Registered;
return [
(new Extend\Event)
->listen(Registered::class, function (Registered $event) {
$event->user->activate();
$event->user->save();
})
];
isaced/flarum-ext-email-verification-switch5 @isaced v1.0 update ready for your approval
Is it compatible with Flarum 1.2? There is no info on extiverse
How does this extention work? It doesn't seem to do anything on my website. Tried some test activations but nothing happened. Activation mail was still sent.
Ok, tried it. Indeed, the mail didn't get sent anymore. However, instead of the new user being activated in the correct group (new users on my forum), nothing happened and I needed to move the user to the correct group myself.
I have deactivated this extention and now the user needs to follow the link in the activation email to register. But at least, then he's activated in the correct usergroup.
The email verification is still sent, even if there is no need to click on the link to confirm the account. There is a way to prevent the email to be sent? Thanks
tenentecartina did you found a solution to prevent sending the activation email?
- Edited
Since I create new users exclusively via API query, as I manage the users via my existing web application, I could prevent the sending of the confirmation email by already setting isEmailConfirmed = true in the API query.
Setting param "is_email_confirmed" = true wont work.
Something like:
$post_params = [
"data" => [
"attributes" => [
"email" => "user@example.com",
"password" => "user_password",
"isEmailConfirmed" => true
]
]
];
tenentecartina did you found a solution to prevent sending the activation email?
- Edited
I was looking at such a solution after all my attempts at configuring SMTP email failed with an external email provider.
I see the last commit on github is from 1.5 yrs ago---I hope this is still working with the latest flarum version.
Edit: it works, but it still tries to send the verification mail. Which it shouldn't do. Also, I have the yellow banner "we've sent the confimation email. check your spam folder." Which is really unnecessary and I don't know how to get rid of it.