Replies: 2 comments 4 replies
|
Set Config\Email. |
4 replies
|
Hi,
There are two solutions for this. The first method: use sessions modify the public function loginRedirect(): string
{
if (session('magicLogin')) {
return redirect()->route('set_password');
}
$url = setting('Auth.redirects')['login'];
return $this->getUrl($url);
}
$users = model('UserModel');
$user = $users->findById(auth()->user_ir);
$user->fill([
'password' => 'New passs'
]);
$users->save($user);The second method: using events |
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,
Can someone explain how to customize Email.fromEmail and Email.fromName which are needed by "register" and "forgot password" functions...
And may this explanation cover all the process of what you have to do to manage things when a user registers or need to recover his password. All of this stuff was not include in the doc... or maybe am i dumb...
Thanks a lot
Eric
All reactions