Forum

Questions and discussions

login name using ( - . _ )

Script's setup and configuration

login name using ( - . _ )

Postby sportphoto » Fri Jun 27, 2014 10:56 pm

Hi
at the moment no one can create a login name with ( - . _ )
but beacuse i like to use login name as they sellers company name
how can i let them to use only this 3 ( - . _ )

like my COP : sport-photographer or sport-photographer.com

thanks
sportphoto
 
Posts: 27
Joined: Fri May 30, 2014 2:43 pm

Re: login name using ( - . _ )

Postby admin » Sat Jun 28, 2014 7:42 am

You should edit the file:
/members/check_login.php

and replace:
Code: Select all
preg_match("/^[A-Za-z]{1,}[A-Za-z0-9]{4,}$/",$_REQUEST['login'])


with:
Code: Select all
preg_match("/^[A-Za-z]{1,}[A-Za-z0-9_\.\-]{4,}$/",$_REQUEST['login'])
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: login name using ( - . _ )

Postby sportphoto » Sat Jun 28, 2014 7:55 am

Thanks :)
sportphoto
 
Posts: 27
Joined: Fri May 30, 2014 2:43 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.