Account Creation in AdminCP

This commit is contained in:
BlameDylan 2015-12-12 00:21:17 -06:00
parent d0e4592377
commit 3d80c5b7e6
5 changed files with 136 additions and 3 deletions

View file

@ -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.
*