Manol Posted April 6, 2015 Posted April 6, 2015 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.
Manol Posted April 7, 2015 Author Posted April 7, 2015 Does anybody has a form to register a user directly from the frontend? Best regards.
pwFoo Posted April 7, 2015 Posted April 7, 2015 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; } 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now