diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-06-25 17:33:35 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-06-25 17:33:35 +0200 |
commit | 2aeed27b9b32e2bd7bd1ef189e4af8d6c23575fa (patch) | |
tree | 7021425df92499934861046567b555d68a069200 /Zotlabs/Module | |
parent | d636e710246c193e8f1465c13568801102e63514 (diff) | |
download | volse-hubzilla-2aeed27b9b32e2bd7bd1ef189e4af8d6c23575fa.tar.gz volse-hubzilla-2aeed27b9b32e2bd7bd1ef189e4af8d6c23575fa.tar.bz2 volse-hubzilla-2aeed27b9b32e2bd7bd1ef189e4af8d6c23575fa.zip |
emiting a notice from include/auth does not work. emit it from mod login if the login failed.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Login.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Zotlabs/Module/Login.php b/Zotlabs/Module/Login.php index 269990a54..f5a83a91a 100644 --- a/Zotlabs/Module/Login.php +++ b/Zotlabs/Module/Login.php @@ -5,10 +5,17 @@ namespace Zotlabs\Module; class Login extends \Zotlabs\Web\Controller { function get() { - if(local_channel()) + if (local_channel()) { goaway(z_root()); - if(remote_channel() && $_SESSION['atoken']) + } + + if (remote_channel() && $_SESSION['atoken']) { goaway(z_root()); + } + + if (!empty($_GET['retry'])) { + notice( t('Login failed.') . EOL ); + } $o = '<div class="generic-content-wrapper">'; $o .= '<div class="section-title-wrapper">'; |