Ask - Test
RE: Autologin & Foggot pasword can't be disable
Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsI want to disable these two options: Auto-login and Forgot Password, but when I go to the Control Panel, I get the following error message:
"Error: Your request was unsuccessful."
I tried modifying portal-ext.properties, adding a file in OSGi, but nothing worked.
RE: Autologin & Foggot pasword can't be disable
Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent PostsCan you be a bit more specific about what you actually have done? Apparently the (unknown) "modification" and the (unknown) "file" (and unknown file content) didn't do the job, but without knowing what you tried, it's hard to spot what you did.
(Also, please include the exact version that you're using)
RE: Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsHello, thank's for you ansew.
That what I already did :
Modification of the portal-ext.properties file
Adding the following parameters:
# Disable automatic login
session.remember.me.enabled=false
# Disable password recovery
passwords.reminder.enabled=false
users.reminder.queries.enabled=false
# Disable automatic redirections
auth.forward.by.last.path=false auth.forward.by.redirect=false
Server restart after applying the changes.
Database verification
I checked the Configuration_
table to see if these
parameters were properly applied.
No visible changes after modifications.
Adding a file in the OSGi configs folder
I added a configuration file in:
C:\Liferay\liferay-ce-portal-7.2.1-ga2\osgi\configs
with the parameters disabling these options.
No effect
observed after restarting.
Cache cleanup and private browsing tests
Deleted the following folders in Tomcat:
-
temp/
-
work/
-
logs/
-
data/
Tested in private browsing mode, but the options remain visible.
I use Liferay Community Edition Portal 7.2.1 CE GA2
Thank's a lot
RE: RE: Autologin & Foggot pasword can't be disable
Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts7.2.1 was released in November 2019 - I don't currently have it running. In the current version, at least the first two portal.properties options have been removed, and I don't know when they were last in use. This is yet another good example why it's good to not fall too far back with upgrades.
Just to be sure, you might want to try deleting the osgi/state directory as well before the next start.
I'm also still puzzled about "when I go to the Control Panel, I get the following error message: "Error: Your request was unsuccessful.""
Which Control Panel link do you click (or which URL shows this message)? I'm assuming that you are signed in with an administrative account.
RE: RE: Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsHi,
I deleted the files from the osgi/state
directory, but
unfortunately, Liferay wouldn't start afterward. I had to restore the
files to get the portal running again.
Regarding the error message, it appears when I access the control panel via the following URL:
https://mysite.com/group/control_panel/manage?p_p_id=com_liferay_configuration_admin_web_portlet_InstanceSettingsPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_configuration_admin_web_portlet_InstanceSettingsPortlet_mvcRenderCommandName=%2Fview_configuration_screen&_com_liferay_configuration_admin_web_portlet_InstanceSettingsPortlet_configurationScreenKey=general-authentication
The control panel in question is the one related to the configuration screens. The error appears when I try to submit the settings.
Thanks in advance for your help!
Best regards,
RE: RE: Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsHello, I'm sorry my image never gets sent.
RE: RE: Autologin & Foggot pasword can't be disable
Liferay Master Posts: 764 Join Date: 1/5/10 Recent PostsHi Berger Rémi,
What is not clear to me... Do you want to disable the Auto-login and Forgot Password through the portal-ext.properties file or you say that after adding the properties above to your portal-ext.properties file, you cannot reach the UI settings of that on the Control Panel: https://learn.liferay.com/w/dxp/system-administration/configuring-liferay/virtual-instances/user-authentication?
Regards,
Zsigmond
RE: RE: Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsHi Zsigmond,
I would like to disable the Auto-login and Forgot Password options
from the UI, but it does not seem to work. Since that didn’t work, I
also tried disabling them through the
portal-ext.properties
file, but that didn’t work either.
Do you have any suggestions on what might be causing this issue?
Best regards,
Rémi
RE: RE: Autologin & Foggot pasword can't be disable
Liferay Master Posts: 764 Join Date: 1/5/10 Recent PostsHi Rémi,
Do you uncheck the "Allow users to automatically log in?" and the "Allow users to request password reset links?" checkboxes but it doesn't affect the behaviour?
If so, however, I never heard about that it would have not wokred ever, it must be a bug that should be fixed.
Regards,
Zsigmond
RE: RE: Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsHello Zsigmond,
I have unchecked the options "Allow users to automatically log in?" and "Allow users to request password reset links?".
However, when I submit these changes, I encounter the following error message:
Error: Your request failed to complete
This error persists despite multiple attempts.
Could you please confirm if this is a known issue or if there are any additional checks I should perform on my side?
Thank you in advance for your help.
Best regards,
Rémi
RE: RE: Autologin & Foggot pasword can't be disable
Liferay Master Posts: 764 Join Date: 1/5/10 Recent PostsHi Rémi,
When such an error is shown on the UI, there is an exception in the server log file. That should be investigated to know better what the problem is. If you can share that, I can try to help.
Without any further info, I cannot say that it's a real bug or not. I mean, there is definitely some problem, however, at this point with having this UI message only I cannot be sure that the problem is really in the Liferay.
Regards,
Zsigmond
RE: RE: Autologin & Foggot pasword can't be disable
New Member Posts: 7 Join Date: 2/11/25 Recent PostsHi Zsigmond,
I've checked the logs and didn't find anything unusual. Could you please specify which logs or sections I should analyze in depth to better identify the issue?
Thanks,
Rémi
Powered by Liferay™