19 days later

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.

2 months later

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.

    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();
        })
    ];
    7 months later

    Is it compatible with Flarum 1.2? There is no info on extiverse

    a month later

    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.

      HerrUU This extension helps you activate your account when registering without clicking on the link in the email to confirm the account.

      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.

      7 months later
      3 months later

      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
      ]
      ]
      ];

      4 months later

      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.