We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4837fc commit 0805765Copy full SHA for 0805765
src/Controllers/MagicLinkController.php
@@ -145,6 +145,11 @@ protected function displayMessage(): string
145
*/
146
public function verify(): RedirectResponse
147
{
148
+ // Check if magic-link is not allowed
149
+ if (! setting('Auth.allowMagicLinkLogins')) {
150
+ return redirect()->route('login')->with('error', lang('Auth.magicLinkDisabled'));
151
+ }
152
+
153
$token = $this->request->getGet('token');
154
155
/** @var UserIdentityModel $identityModel */
0 commit comments