Page 1 of 1

Script register the same name of (User name)more than once

PostPosted: 19 Jun 2015, 18:31
by mhmdup
Dear

The System accept and register the same name of the ( User name) More than once and unlimited

Regards

Re: Script register the same name of (User name)more than on

PostPosted: 22 Jun 2015, 16:02
by andipas
The file - protected/models/User.php

Add rule:

Code: Select all

    
public function rules() {
        return array(
            array(
'username, password, salt, email, temprecoverpassword, agency_name, ava''length''max' => 128),
            array(
'username''unique'), // this rule
 

Re: Script register the same name of (User name)more than on

PostPosted: 23 Jun 2015, 04:27
by mhmdup
Thank your very much , it's done

Is there is fast way to show :
( User name "......" has already been taken.) message
In time , when user or admin , fill ( Your name ) ( User name ) , fields
before press ( Create ) button or ( Registration ) button

Regards