- 
        Couldn't load subscription status. 
- Fork 3
Creating an Account
        Đorđe Jocić edited this page Jan 2, 2019 
        ·
        1 revision
      
    Account objects are used to hold service and various account details. Use the following snippet if you want to create an account.
$secret  = new Jocic\GoogleAuthenticator\Secret();
$account = new Jocic\GoogleAuthenticator\Account("Hosting ABC", "John Doe", $secret);Alternatively, you can instantiate an object and set parameters later.
$secret  = new Jocic\GoogleAuthenticator\Secret();
$account = new Jocic\GoogleAuthenticator\Account();
$account->setServiceName("Hosting ABC");
$account->setAccountName("[email protected]");
$account->setAccountSecret($secret);