I’m have some problem with my security.
I want to add security question for administrator of my site and I found “security question” module. It work good, but for autenticated user, not for administrator. I want to check the security question after login for only administrator, not for user.
I try read the .module file of this module, but it’s hard to understand.
So, how can I do with that module.
Many thanks!!
I’m have some problem with my security. I want to add security question for
Share
If you look inside the .module file, you will find this line, line 377
function _security_questions_user_login(&$form, &$form_state, $form_id) {This is the function where the user login form is altered to include your security question.
What I’d suggest is adding an
ifstatement to satisfy your condition, such as:Once you’ve done that, all you need to do is go to the permissions page and uncheck the box that allows administrators to by-pass the security question.