Browse Source

modify 1344 login username lowercase

theo 3 năm trước cách đây
mục cha
commit
5a62ededeb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backendApi/modules/v1/models/AdminForm.php

+ 1 - 1
backendApi/modules/v1/models/AdminForm.php

@@ -89,7 +89,7 @@ class AdminForm extends Model
 
         if($this->scenario == 'add'){
             $model = new Admin();
-            $model->ADMIN_NAME = $this->adminName;
+            $model->ADMIN_NAME = strtolower($this->adminName);
             $model->REAL_NAME = $this->realName;
             $model->ROLE_ID = $this->roleId;
             $model->REMARK = $this->remark;