Skip to content

Commit

Permalink
Move things
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Sep 19, 2017
1 parent 0ec400f commit 5f130d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
9 changes: 8 additions & 1 deletion composer.json
Expand Up @@ -4,7 +4,14 @@
"description": "Create recovery codes for two factor auth",
"keywords": [
"pragmarx",
"recovery"
"2fa",
"google2fa",
"auth",
"two factor auth",
"account recovery",
"recovery",
"recovery codes",
"backup codes"
],
"homepage": "https://github.com/antonioribeiro/recovery",
"license": "MIT",
Expand Down
24 changes: 12 additions & 12 deletions src/Recovery.php
Expand Up @@ -32,6 +32,18 @@ public function __construct(Random $random = null)
$this->random = $random;
}

/**
* Set to alpha codes.
*
* @return Recovery
*/
public function alpha()
{
$this->random->alpha();

return $this;
}

/**
* Generate the recovery codes.
*
Expand Down Expand Up @@ -147,18 +159,6 @@ public function numeric()
return $this;
}

/**
* Set to alpha codes.
*
* @return Recovery
*/
public function alpha()
{
$this->random->alpha();

return $this;
}

/**
* Get an array of recovery codes.
*
Expand Down

0 comments on commit 5f130d8

Please sign in to comment.