|
|
@@ -16,6 +16,20 @@ class AdminController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['recent-shop', 'mini-full-info', 'mini-mobile', 'login-detail'];
|
|
|
|
|
|
+ //修改密码 shish 20220106
|
|
|
+ public function actionModifyPassword()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $password = $get['password'] ?? '';
|
|
|
+ if (empty($password)) {
|
|
|
+ util::fail('请填写密码');
|
|
|
+ }
|
|
|
+ $adminId = $this->adminId;
|
|
|
+ $password = password_hash($password, PASSWORD_BCRYPT);
|
|
|
+ AdminClass::updateById($adminId, ['password' => $password]);
|
|
|
+ util::complete('操作成功');
|
|
|
+ }
|
|
|
+
|
|
|
//最近店铺 ssh 2021.2.27
|
|
|
public function actionRecentShop()
|
|
|
{
|