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

Write about issues that you have found.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

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

Postby mhmdup » 19 Jun 2015, 18:31

Dear

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

Regards
Attachments
pic100.jpg
pic100.jpg (173.66 KiB) Viewed 10908 times
mhmdup
Passer
 
Posts: 27
Joined: 27 May 2015, 01:25
Reputation point: 0

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

Postby andipas » 22 Jun 2015, 16:02

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
 
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1

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

Postby mhmdup » 23 Jun 2015, 04:27

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
mhmdup
Passer
 
Posts: 27
Joined: 27 May 2015, 01:25
Reputation point: 0


Return to Issues

Who is online

Users browsing this forum: No registered users and 3 guests