├── .gitignore ├── extend.php ├── README.md ├── composer.json └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | composer.phar 2 | /vendor/ 3 | 4 | # Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file 5 | # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file 6 | # composer.lock 7 | -------------------------------------------------------------------------------- /extend.php: -------------------------------------------------------------------------------- 1 | listen(Saving::class, function (Saving $event) { 9 | if (!$event->user->exists) { 10 | $event->user->activate(); 11 | } 12 | }) 13 | ]; 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Email verification switch 2 | [![Latest Stable Version](https://poser.pugx.org/isaced/flarum-ext-email-verification-switch/version)](https://packagist.org/packages/isaced/flarum-ext-email-verification-switch) [![Total Downloads](https://poser.pugx.org/isaced/flarum-ext-email-verification-switch/downloads)](https://packagist.org/packages/isaced/flarum-ext-email-verification-switch) 3 | 4 | A [Flarum](http://flarum.org) extension. Disable new registered user email verification, will be activated automatically. 5 | 6 | 7 | ### Installation 8 | 9 | Install manually with composer: 10 | 11 | ```sh 12 | composer require isaced/flarum-ext-email-verification-switch:"*" 13 | ``` 14 | 15 | ### Updating 16 | 17 | ```sh 18 | composer update isaced/flarum-ext-email-verification-switch 19 | ``` 20 | # Links 21 | 22 | - Packagist - [isaced/flarum-ext-email-verification-switch](https://packagist.org/packages/isaced/flarum-ext-email-verification-switch) 23 | - Flarum Discuss Post: [[Extensions] Email verification switch](https://discuss.flarum.org/d/6485) 24 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "isaced/flarum-ext-email-verification-switch", 3 | "description": "Disable new registered user email verification.", 4 | "type": "flarum-extension", 5 | "keywords": ["register", "email"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "isaced", 10 | "email": "isaced@163.com" 11 | } 12 | ], 13 | "support": { 14 | "issues": "https://github.com/isaced/flarum-ext-email-verification-switch/issues", 15 | "source": "https://github.com/isaced/flarum-ext-email-verification-switch", 16 | "forum": "https://discuss.flarum.org/d/6485" 17 | }, 18 | "require": { 19 | "flarum/core": "^1.0" 20 | }, 21 | "extra": { 22 | "flarum-extension": { 23 | "title": "Email verification switch", 24 | "category": "feature", 25 | "icon": { 26 | "name": "far fa-envelope", 27 | "backgroundColor": "#83AF9B", 28 | "color": "#fff" 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019-2021 isaced 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------