Account Creation in AdminCP
This commit is contained in:
parent
d0e4592377
commit
3d80c5b7e6
5 changed files with 136 additions and 3 deletions
|
@ -41,6 +41,18 @@ class IndexController extends Controller
|
|||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a random string.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword(Request $request, $length = 16)
|
||||
{
|
||||
$length = ($length < 8) ? 8 : $length;
|
||||
return str_random($length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns TOTP Management Page.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue