-
Notifications
You must be signed in to change notification settings - Fork 4
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("john@doe.com");
$account->setAccountSecret($secret);