Yii Framework Forum: user authantication problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

user authantication problem Rate Topic: -----

#1 User is offline   Zahid Mughal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 21-April 10
  • Location:Pakistan

Posted 05 May 2010 - 06:29 AM

how to add some validation which check that the user name you want to enter is already exist in database ..

thanks
Zahid Mughal

0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 05 May 2010 - 06:49 AM

            array('UserName', 'unique',
                'on'=>'insert,update,signup',
                'message'=>t('Not available')
            ),

0

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 05 May 2010 - 06:49 AM

check the CExistValidator - http://www.yiiframew...CExistValidator
Find more about me.... btw. Do you know your WAN IP?
0

#4 User is offline   Zahid Mughal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 21-April 10
  • Location:Pakistan

Posted 05 May 2010 - 07:12 AM

View PostMike, on 05 May 2010 - 06:49 AM, said:

            array('UserName', 'unique',
                'on'=>'insert,update,signup',
                'message'=>t('Not available')
            ),





thank u brother. you have solved my problem.
Zahid Mughal

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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