Tell us what you are trying to do?
I created a CRED form to "EDIT EXISTING Users"
A warning error appears saying:
"This form will auto-generate the password for the new user."
Should I simply ignore it?
It would be wrong that when users came to update their profile the system would change their password.
It should and I don't think it will , maybe thee warning error is appearing by mistake.
Please advise.
Is there any documentation that you are following?
None
Is there a similar example that we can see?
No
What is the link to your site?
Localhost
Hello,
That is only a notice message, when you click the button "Auto-Generate User Form", there is an option "Autogenerate Password", disable it, then there will not be the message, I can see you have already fixed in your website.
Thank you so much Luo.
I found the setting you described.
The message is gone indeed.
By the way, have there been updates to the password fields?
As you see the function I like to have in the profile editing page is like bellow:
<p><small>If you'd like to change your password type a new one.<br>
Otherwise leave the bellow blank.</small></p>
<div class="row">
<div class="form-group col-sm-6">
<label>New Password</label>
[cred_generic_field field='user_pass' type='textfield' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":""
}
[/cred_generic_field]
</div>
<div class="form-group col-sm-6">
<label>Confirm New Password</label>
[cred_generic_field field='user_pass2' type='textfield' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":""
}
[/cred_generic_field]
</div>
</div>
Would the code above still function or do I need to make any updates?
I noticed unchecking the "auto generate password" box placed this two fields bellow in the form:
<div class="form-group">
<label>Password</label>
[cred_field field='user_pass' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Repeat Password</label>
[cred_field field='user_pass2' value='' urlparam='' class='form-control' output='bootstrap']
</div>
.. Which I removed, and my whole code looks like this:
[creduserform class='cred-user-form cred-keep-original']
[cred_field field='form_messages' value='' class='alert alert-warning']
<div class="row">
<div class="form-group col-sm-6">
<label>First Name</label>
[cred_field field='first_name' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group col-sm-6">
<label>Last Name</label>
[cred_field field='last_name' value='' urlparam='' class='form-control' output='bootstrap']
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<label>Email</label>
[cred_field field='user_email' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group col-sm-6">
<label>Phone</label>
[cred_field field='phone' value='' urlparam='' class='form-control' output='bootstrap']
</div>
</div>
<p><small>If you'd like to change your password type a new one.<br>
Otherwise leave the bellow blank.</small></p>
<div class="row">
<div class="form-group col-sm-6">
<label>New Password</label>
[cred_generic_field field='user_pass' type='textfield' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":""
}
[/cred_generic_field]
</div>
<div class="form-group col-sm-6">
<label>Confirm New Password</label>
[cred_generic_field field='user_pass2' type='textfield' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":""
}
[/cred_generic_field]
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<label><span style="color: #808080;"><small>Usernames cannot be changed.</small></span></label>
[cred_field field='user_login' post='user' value='' urlparam='' readonly='true' class='form-control' output='bootstrap']
</div>
<div class="form-group col-sm-6">
[cred_field field='form_submit' value='Update' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']
</div>
</div>
[/creduserform]
I assume the original question has been resolved, for the new question, please check the new thread here:
https://toolset.com/forums/topic/i-like-to-have-in-the-profile-editing-page-with-password-field/