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
| */ | ||
| public function loginView() | ||
| { | ||
| $this->displayErrorMagicLinkDisabled(); |
There was a problem hiding this comment.
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