I was working on the Edit Admins screen and implementing the permission levels on log in. If you don’t know, permission levels are a way to say that an admin can access everything or just parts or 1 part of the site. When an admin logs in we need to know their permission level so we can build the menus correctly and redirect them to the screen they most likely want to visit. When I was testing this functionality I ran into some issues. I had 2 admins with the same log in name, which is something I knew I wasn’t going to allow but my test data didn’t conform to my own rules. Anyways, I tried to log in as this admin and it kept saying my password was wrong, and I attempted it 3 times and got locked out.
I wanted to reset my lock out so I could continue working, but I needed to write the code and decided I should look into my lock out deeper and make sure there is an amount of time set that users could be locked out for. Initially it was set to whatever the default is(who knows? 1/2 hour?) I coded it to last 10 minutes from the time you were locked out which I think is reasonable.
Then I got caught up in a web of logging in to the correct page and building the menus correctly and what page you should land on when locked out, etc. It took a lot of time to get this stuff straight, but I’m confident that I’m doing the right things now and I will not have to worry about it, which is good.
Now that I have finished that, I can get back to the Edit Admins screen and get it finished up. In my next blog post I will provide a screen shot.
Thanks for reading!