Yii Framework Forum: Registration Form - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Registration Form How can i ask for re-password in registration form? Rate Topic: -----

#1 User is offline   Nimit Agrawal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 04-June 11

Posted 10 June 2011 - 02:07 PM

I am making a sign-up for my site. How can i ask for retype password and match with the password for a valid registration? I would be grateful if anyone could help me out.
0

#2 User is offline   Y!! 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 978
  • Joined: 18-June 09

Posted 10 June 2011 - 02:18 PM

Add

public $passwordRepeat;


to your model.

Assuming you have a "password"-column in your schema, add this validation rule to your model:

array('passwordRepeat', 'compare', 'compareAttribute' => 'password')


Should give you a clue.
0

#3 User is offline   PeRoChAk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 579
  • Joined: 26-November 10
  • Location:Lahore, Pakistan

Posted 10 June 2011 - 02:19 PM

why not try already developed modules such as Yii-user , Yii-user-management
Cheers
Perochak
Web Design - Logo Design - Application Development

My Blog | Forums Comparison
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users