瀏覽代碼

[backend] Création des comptes utilisateur : uniquement 'lastname' requis

refactoring
Guillaume Bourgeois 4 年之前
父節點
當前提交
2fbbb80f7f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      common/models/User.php

+ 1
- 1
common/models/User.php 查看文件

@@ -98,7 +98,7 @@ class User extends ActiveRecordCommon implements IdentityInterface
return [
[['no_mail', 'mail_distribution_monday', 'mail_distribution_tuesday', 'mail_distribution_wednesday', 'mail_distribution_thursday', 'mail_distribution_friday', 'mail_distribution_saturday', 'mail_distribution_sunday'], 'boolean'],
[['lastname', 'name', 'phone', 'address'], 'string'],
[['lastname', 'name'], 'required', 'message' => 'Ce champs ne peut être vide'],
[['lastname'], 'required', 'message' => 'Ce champs ne peut être vide'],
['email', 'email', 'message' => 'Cette adresse email n\'est pas valide'],
['email', 'verifyEmail'],
['status', 'default', 'value' => self::STATUS_ACTIVE],

Loading…
取消
儲存