Two Factor Auth Secret Key

Discussion in 'Customization & add-ons' started by jakumpe, Apr 18, 2020.

  1. jakumpe

    jakumpe New Member

    Joined:
    May 14, 2010
    Messages:
    13
    Where is the secret key saved in SQL for the Two Factor Authentication Plugin? Need to be able to pass this along to other scripts as I have programs that use it and I want the secret key to be uniform between amember and the other systems that customers sign in to.
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    You can find secret in table am_data
    Code:
    SELECT * FROM am_data
        WHERE `table`='user'
            AND `id`=USER_ID
            AND `key` = 'two-factor-hotp.secret' ;
    Where USER_ID is id of user from table am_user.

    Best Regards.
    jakumpe likes this.

Share This Page