Jump to content

inputfile text as password


Manol
 Share

Recommended Posts

Hello.


   


    I'm using FormBuilder 0.2.4 to register users.


 


    Users fill inputs and then they are saved as unpublished users until the admin decides.


 


    The problem I'm facing is that I set  an input field of type text in formbuilder ( there is no password field in FB ) and a assign this field to the pass field in users template, but because they are of different types ( text vs pass ) the  user pass field is empty.


 


    Do you have any solution?


 


Thank you.


Link to comment
Share on other sites

I write a login / register module. Basic login / logout / register works fine. Also a simple PersistLogin and ProcessForgotPassword integration.

https://processwire.com/talk/topic/8001-frontenduserlogin/?p=92083

Testing repo: https://bitbucket.org/pwFoo/frontenduser/overview

Requires FormHelper module testing branch: https://bitbucket.org/pwFoo/formhelper/src/baa9fc92d08103775626ed931e1b6af02bbb8cba/?at=testing

InputfieldText as password field from my module.

    protected function password() {
        $field = $this->modules->get('InputfieldText');
        $field->skipLabel = 4; // Inputfield::skipLabelBlank;
        $field->placeholder = $this->_('Password');
        $field->attr('id+name', 'password');
        $field->attr('type','password');
        $field->required = 1;
        return $field;
    }
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...