aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2025-06-25 17:33:35 +0200
committerMario Vavti <mario@mariovavti.com>2025-06-25 17:33:35 +0200
commit2aeed27b9b32e2bd7bd1ef189e4af8d6c23575fa (patch)
tree7021425df92499934861046567b555d68a069200 /Zotlabs/Module
parentd636e710246c193e8f1465c13568801102e63514 (diff)
downloadvolse-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.php11
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">';