mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 04:13:46 +02:00
Account Creation in AdminCP
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user