on 06-22-2016 8:56 AM
What is the best way to disable login for all customers because of maintenance activities in backend.
From what i see there is no standard functionalities for doing this.
Thank you, Florin
Hi Florin,
Let me try to distinguish between the separate concerns you have here:
=> Disable user login (a customer is a user after all)
- using the option found in the Password tab, either in hmc or in backoffice
- using the User.setLoginDisabled() method in code
=> Disable user/usergroup login in hmc
- option is found in the same place
=> Disable user/usergroup login in Backoffice
- using the option found in the Administration tab, either in hmc or in backoffice
=> You can always change the loginDisabled attribute via ImpEx for all entries in the User table
!The admin user and adminusergroup cannot be restricted from logging in.
=> Use a Maintenance page whenever maintenance operations are performed
- this is the best practice
- this configuration is done at webserver/load balancer level
- it's also recommended to return a 503 status message, to avoid having the Maintenance page being indexed by the search engines
I hope this helps you to achieve what you wanted.
Best regards,
Eduard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eduard
thank your for your answer.
i can't disable each time login for 40.000 users, even using impex, each time we put a patch in SAP. Login can be disabled by group only for hmc and not for storefront. The solution with maintenance can't work because i want to disable only login/price/stock/orders during patching and not the anonymous catalog which can work without problems. Regards, Florin
Hi,
the easiest would be to override the implementation of a service used for logging in (usually it checks for *loginallowed fields. You may check the flag you want to use to globally disable it and delegate to super method if the flag allows for login.
Cheers, Wojtek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.