-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Magic Link Login can be used even if $allowMagicLinkLogins
is false
#778
fix: Magic Link Login can be used even if $allowMagicLinkLogins
is false
#778
Conversation
Re-ran failed jobs. |
We have three action methods.
Can you add the |
Honestly, I thought about this, isn't it better to have a private function? private function checkAllowMagicLink( ): RedirectResponse
{
// Check if magic-link is not allowed
if (!setting('Auth.allowMagicLinkLogins')) {
return redirect()->route('login')->with('error', lang('Auth.magicLinkDisabled'));
}
} |
The three |
$allowMagicLinkLogins
is false
75a3562
to
6d56e46
Compare
@@ -50,6 +50,8 @@ public function __construct() | |||
*/ | |||
public function loginView() | |||
{ | |||
$this->displayErrorMagicLinkDisabled(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RedirectResponse
must be returned from this method if allowMagicLinkLogins
is false.
@kenjis, method |
No, it is not a breaking change. But this PR works, so I merge for now. |
fixed: #777