User Secret Blank / Same as VM Password

Hello! The only reason while I still use the FOP2 Admin FreePBX plugin is to set up my FOP2 users with a blank password. This way, FOP2 uses the voicemail password set up in their extension details, and it keeps it the same for the end user. So the end user can remember 1 phone system password as it were - the same password for FOP2 is their voicemail password. And - when the user changes their voicemail password under their user control panel, it automatically updates their FOP2 password.

The issue I have with using /admin in FOP2 is that I can't leave the secret blank when setting up a new user or editing an existing one. If I do, it reverts the secret to the user's extension. Once I hit Submit Changes in the New or Edit User screen, it refills in the Secret with their extension number.

My recourse is to go back into the FreePBX FOP2 Admin and remove it, save it, reload Asterisk, and then I get joy.

Is there a way for me to leave the Secret blank in the FOP2 /admin screen?

If you'd like I could attach screen shots if it helps.

Many thanks!

Comments

  • The fop2 manager code is there for you to tweak if you want... look at the /var/www/html/fop2/admin/functions.php file and search for the fop2_edit user function around line 415...

    a little bit down you will see this line:
    if($secret=='') { $secret=$exten; }
    

    You can comment it by adding a double slash in front, and whenever you edit a user via fop2 manager it will be left blank, and if so the auto config script will use the voicemail pin instead if any.

    Best regards,
  • Thank you! That worked great.
Sign In or Register to comment.