Skip to content
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

[3.9.2]Login module doesn't work #23580

Closed
micker opened this issue Jan 17, 2019 · 13 comments
Closed

[3.9.2]Login module doesn't work #23580

micker opened this issue Jan 17, 2019 · 13 comments

Comments

@micker
Copy link

micker commented Jan 17, 2019

Steps to reproduce the issue

use the login module in front

Expected result

Login and redirection

Actual result

No login and redirection to index.php

System information (as much as possible)

PHP exécuté sur | Linux am4.siteground.biz 3.12.18-clouder0 #28 SMP Thu Mar 8 11:53:03 EET 2018 x86_64
Type de la base de données | mysql
Version de la base de données | 5.6.40-84.0-log
Interclassement de la base de données | utf8_general_ci
Collation de la connexion à la base de données | utf8mb4_general_ci
Version de PHP | 7.1.26
Serveur web | Apache
Serveur web pour interface PHP | cgi-fcgi
Version de Joomla | Joomla! 3.9.2 Stable [ Amani ] 15-January-2019 15:00 GMT
Version de la plateforme Joomla! | Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Navigateur | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Additional comments

no error in console
tested in 2 sites

@micker micker changed the title Login module doesn't work [3.9.2]Login module doesn't work Jan 17, 2019
@infograf768
Copy link
Member

Can't reproduce the issue here.

@micker
Copy link
Author

micker commented Jan 17, 2019

Can i put link for testing ?

@infograf768
Copy link
Member

I would not do that in public.

@HLeithner
Copy link
Member

@micker if your site is public you can add it here

@infograf768
Copy link
Member

imho, it would not help if we do not have credentials...

@HLeithner
Copy link
Member

HLeithner commented Jan 18, 2019

yeah thats true...

@DonaldTrump88
Copy link

Did you disable any plugin related to the login or authetication in backend or install new one which can cause conflict?

@maciej-wol
Copy link

maciej-wol commented Jan 23, 2019

Hello

I have same problem with redirection on component who I write.

In view I have:

if ($user->get('guest')) {
$redirectUrl = urlencode(base64_encode(JRoute::('index.php?option=com_mwindustries&view=orders',false)));
$url = JRoute::
('index.php?option=com_users&view=login&return='.$redirectUrl,false);
$app->redirect($url);
}
but after login to site Im redirect do profile page.

I was check code and find that problem is in com_users\models\login.php, line 65
if (!JUri::isInternal($data['return']))
{
$data['return'] = '';
}

When Im put var_dump($data['return']); in line 64 its return "/joomla/index.php?option=com_mwindustries&view=orders&Itemid=104", but same var_dump in line 69 return - string(0) ""

So problem is in JUri::isInternal function.

Sins
Mac

@maciej-wol
Copy link

Due to https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F return address must be non-sef.
So this address works good $redirectUrl = urlencode(base64_encode('index.php?option=com_mwindustries&view=orders'));
After login user is redirect to good page.

@ghost
Copy link

ghost commented Mar 4, 2019

can this issue be closed?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23580.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/23580

@ghost
Copy link

ghost commented Mar 16, 2019

Closed as no Answer; please reopen if needed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23580.

@DonaldTrump88
Copy link

@franz-wohlkoenig
I have modfied my layout and view class as per ACL, therefore there is no need of separate dashboards for different user groups now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants