The other day, Scott (check out his blog here) and I were at work chatting about the security trailhead superbadge (specifically, my domain). When you have a custom domain for your salesforce instance, you can customise your login page (or replace it entirely).
I then decided that a would make the login page far better, and hence;
— Scott Gassmann (@scottgassmann) July 29, 2016
After this, I went to login to a sandbox to do some actual work, only to be greeted with the ‘Please check your username and password. If you still can’t log in, contact your Salesforce administrator.’ message.
I was fairly sure I hadn’t forgotten my password, so I tried it again… nope. same thing.
What I had forgotten, was the fact that the daily deployment to that environment was happening, and as such all users except for the DevOps team were frozen out.
Which got me thinking… If I can put kittens on the login page, then why not some useful information too.
So, that evening I built this;
The concept is fairly simple, when you put an environment into ‘Maintenance’ mode (e.g during a deployment, etc) it freezes all users, excluding a defined list (e.g the DevOps team, system admins) and changes the login page to show a message informing the users of this.
When you are finished and disable maintenance mode, it will unfreeze all users and change the login page message back.
It uses a custom object to store a list of users who were frozen before the environment entered maintenance mode to ensure they stay frozen once the environment is changed back to normal mode.
The actual page itself is hosted from a force.com site, and is configured via a custom setting and custom metadata, which includes allowing them to be override by other pages.
If you would like to try this in your org, click here for the unmanaged package
For installation instructions, see this post.
I would love to hear any feedback you have, feel free to comment below.wpfreedownload