Customize Sitecore Login Message
Sitecore displays error message to the user on login page , if authentication fails. During production window or any other uncertain condition , we might want to restrict all the content authors from login to Sitecore except admin and display our own custom message like – “Production deployment window. Please try after some time.” For the same we can provide checkbox option to admin to restrict or allow content authors to login to Sitecore.
Follow steps –
- Create new dictionary item under item /sitecore/system/Dictionary/ in core database for error message.
- Provide an an option to admin to restrict all internal users except admin.
- Extend Login default.aspx page to write custom login to check condition i.e. if internal users are blocked then display error message else continue with default login process.
Update inherit attribute –
Class Details – - If user tries to login other than admin , following message will be displayed –
Happy Learning 🙂