Results 1 to 2 of 2

Thread: tl_member field blank when "'encrypt'=>true"

  1. #1
    New user
    Join Date
    09-20-15.
    Posts
    19

    Default tl_member field blank when "'encrypt'=>true"

    Hello all,

    I'm extending the tl_member (backend) and its working fine,
    i added my own rgxp thats working.

    Only when i add
    Code:
    'encrypt'=>true
    in the eval it wont load the field.
    It save's the field in the database but when i look at a member (backend) it wont load, its empty.

    When i remove the
    Code:
    'encrypt'=>true
    the field is loading.
    Am i missing something?

    Here is the code of my field.

    Code:
    $GLOBALS['TL_DCA']['tl_member']['fields']['bsn_nummer'] = array
    (
        'label'     => &$GLOBALS['TL_LANG']['tl_member']['bsn_nummer'],
        'exclude'   => true,
        'inputType' => 'text',
        'eval'      => array('mandatory'=>true, 'encrypt'=>true, 'unique'=>true, 'rgxp'=>'bsn', 'minlength'=>9, 'maxlength'=>9, 'feViewable'=>true, 'feGroup'=>'personal', 'tl_class'=>'w50'),
        'sql'       => "varchar(9) NOT NULL default ''"
    );

  2. #2
    New user
    Join Date
    09-20-15.
    Posts
    19

    Default Solved

    Problem is solved,
    it was in the sql :

    Code:
    'sql'       => "varchar(9) NOT NULL default ''"
    changed it to :

    Code:
    'sql'       => "varchar(255) NOT NULL default ''"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •