Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
form password default value
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
and  
View profile  
 More options Nov 8 2012, 4:26 pm
From: and <andreaesposit...@gmail.com>
Date: Thu, 8 Nov 2012 13:26:02 -0800 (PST)
Local: Thurs, Nov 8 2012 4:26 pm
Subject: form password default value

Hi all,
I have a form for registration and i have some rules that the field must
respect.If i insert the wrong email format,for example,the form says that
it is incorrect.The thing that happen is that the password field is filled
with md5 password.I have the following view:

<p>Please fill out the form below to register an account.</p>
<?php
echo $form->create('User',array('action'=>'register'));?>

<?php
echo $form->input('first_name');
echo $form->input('last_name');
echo
$form->input('username',array('after'=>$form->error('username_unique','User name
esistente.')));
echo $form->input('email',array('after'=>$form->error('email_unique','Email
esistente')));
echo $form->input('password');
?>
<?php echo $form->end('Register');?>

In the file attached you can see a password that i have nerver
inserted.Could you hel me?

  CakePHP: the rapid development php framework: Users - Mozilla Firefox_001.png
50K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lowpass  
View profile  
 More options Nov 8 2012, 6:33 pm
From: lowpass <zijn.digi...@gmail.com>
Date: Thu, 8 Nov 2012 18:32:50 -0500
Local: Thurs, Nov 8 2012 6:32 pm
Subject: Re: form password default value
See here:

http://lecterror.com/articles/view/cakephp-password-hash-issue


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
euromark  
View profile  
 More options Nov 8 2012, 7:40 pm
From: euromark <dereurom...@gmail.com>
Date: Thu, 8 Nov 2012 16:40:24 -0800 (PST)
Local: Thurs, Nov 8 2012 7:40 pm
Subject: Re: form password default value

and if possible use an alias for your form field "password" like "pwd" as
well as some kind of "pwd_repeat" field to confirm the password (since you
cant see it very often it is mistyped rendering the registration invalid
then by accident):
http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/

Am Freitag, 9. November 2012 00:33:18 UTC+1 schrieb cricket:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
and  
View profile  
 More options Nov 9 2012, 12:22 pm
From: and <andreaesposit...@gmail.com>
Date: Fri, 9 Nov 2012 09:22:33 -0800 (PST)
Local: Fri, Nov 9 2012 12:22 pm
Subject: Re: form password default value

Ok friends i have solved the problem.Can I ask you why this problem arises?

to euromark:I should change the field into the table too because i have
users.password column.What I am doing is only an example to see how cakephp
works.Thank you for the advice.

Il giorno venerd́ 9 novembre 2012 01:40:24 UTC+1, euromark ha scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
euromark  
View profile  
 More options Nov 9 2012, 7:59 pm
From: euromark <dereurom...@gmail.com>
Date: Fri, 9 Nov 2012 16:59:12 -0800 (PST)
Local: Fri, Nov 9 2012 7:59 pm
Subject: Re: form password default value

thats simple: if you post the form it will keep all the values. so the
password is (probably hashed in your controller and) returned back to the
view.
an empty string would also result in a long hash.
either way, the password fields should always be empty as default -
otherwise you could make them visible input fields right away.

Am Freitag, 9. November 2012 18:22:33 UTC+1 schrieb and:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »