null], [['estatus'], 'integer'], [['rfc'], 'string', 'max' => 13], [['correo', 'clave', 'nombre', 'apellidoPaterno'], 'string', 'max' => 100], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'rfc' => 'Rfc', 'correo' => 'Correo', 'clave' => 'Clave', 'nombre' => 'Nombre', 'apellidoPaterno' => 'Apellido Paterno', 'apellidoMaterno' => 'Apellido Materno', 'estatus' => 'Estatus', ]; } public function agregarClave($pwd) { $this->clave = Yii::$app->getSecurity()->generatePasswordHash($pwd); } public function validarClave($pwd) { return Yii::$app->getSecurity()->validatePassword($pwd, $this->clave); } }