backstage seeds upload

This commit is contained in:
yanwenwu
2018-11-21 11:10:25 +08:00
parent 0e0492978c
commit a38ec53d1d
8 changed files with 313 additions and 3 deletions

View File

@@ -56,3 +56,12 @@ if (!function_exists('searchButton')) {
return sprintf('<button class="btn btn-white" type="submit"><i class="fa fa-search"></i> %s</button>', $name);
}
}
/**
* 生成密码
*/
if (!function_exists('generatePassword')) {
function generatePassword(string $password, int $algo = PASSWORD_DEFAULT) {
return password_hash($password, $algo);
}
}