Ability to mark email is verified #16
simpsoncarlos3
started this conversation in
Ideas
Replies: 1 comment
-
The package is easily customisable. This can be achieved by extending the namespace App\Models;
use Maize\MagicLogin\Models\MagicLogin;
class CustomMagicLogin extends MagicLogin
{
public function login(): self
{
parent::login();
/** @var User $user*/
$user = $this->authenticatable;
if (is_null($user->email_verified_at)) {
$user->email_verified_at = now();
}
/*other custom logic*/
return $this;
}
} Once completed, you can then update the return [
/*
|--------------------------------------------------------------------------
| Magic Login model
|--------------------------------------------------------------------------
|
| Here you may specify the fully qualified class name of the magic login
| model.
| By default, the value is Maize\MagicLogin\Models\MagicLogin::class
|
*/
'model' => 'App\Models\CustomMagicLogin::class',
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I would like to mark user email as verified in User model as soon as user click on magic link.
is it possible to do that in current version of laravel-magic-login?
if not kindly can you add this feature? (something like a callback that i can run right after clicking magic link)
Beta Was this translation helpful? Give feedback.
All reactions