[ic] problems with mixed case usernames

Eros Shop info at eros-shop.co.uk
Sat Apr 10 17:05:54 EDT 2004


At 21:08 10/04/2004, you wrote:
> > From: interchange-users-bounces at icdevgroup.org
>[mailto:interchange-users-
> > bounces at icdevgroup.org] On Behalf Of Eros Shop
> >
> > Hi All,
> >
> > It seems that a lot of my users/customers are forgetful when it comes
>to
> > their login details and despite the provision of a means to retrieve
>their
> > logon details by email they tend to opt for creating a new account.
> >
> > After a bit of investigation, it appears that this all boils down to
>the
> > case of the letters in the username. IC appears to see "Mark" and
>"mark"
> > as
> > different when it comes to username/account creation and I wondered if
>it
> > was possible to make the process case insensitive or forced lowercase?
> >
> > Many thanks
> >
> > Mark
> >
>
>Check the ignore_case parameter for the new account function.
>
>http://www.icdevgroup.org/i/dev/docfly.html?mv_arg=icdatabase09%2e03
>
>-Ron

Thanks for the pointer Ron,

Sadly I'm not on the ball as much as I thought I was and I don't see how to 
use any of this with my login.html and new_account.html files :(

I'm going to have to resort to the basics....

Given this stripped back form in login.html, how would I make it case 
insensitive?

<FORM ACTION="[process secure=1]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_todo  VALUE=return>
<INPUT TYPE=hidden NAME=mv_click VALUE=Login>
<INPUT TYPE=hidden NAME=mv_failpage VALUE="login">
<INPUT TYPE=hidden NAME=mv_successpage VALUE="[either][scratchd 
mv_successpage][or]customerservice[/either]">
<INPUT TYPE=hidden NAME=mv_nextpage VALUE="index">
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT NAME=mv_username VALUE="[read-cookie MV_USERNAME]">
<INPUT TYPE=text NAME=mv_password VALUE="">
<input type="image" value="Log In" src="__THEME_IMG_DIR__login_button.gif" 
border=0 alt="Log In">
</FORM>


Below is new_account.html, pretty much untouched from the foundation 
version, what needs to be done?

[if session logged_in][bounce href="[area account]"][/if]
[if !scratch new]

[comment]
[if session failure]
   <P>
   <b>[data session failure]</b>
   [data base=session field=failure value=""]
   <P>
[/if]
[/comment]

[else]
[set new][/set]
[/else]
[/if]

<table border="0" cellspacing="0" cellpadding="0">

[set NewAccount]
[if type=explicit compare="[userdb new_account]"]
mv_nextpage=account
[else]
mv_nextpage=new_account
[/else]
[/if]
[/set]

<FORM ACTION="[process-target]" METHOD=POST>
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT TYPE=hidden NAME=mv_click VALUE=NewAccount>
<INPUT TYPE=hidden NAME=mv_doit  VALUE=return>
<INPUT TYPE=hidden NAME=function  VALUE=new_account>
<INPUT TYPE=hidden NAME=mv_nextpage VALUE=ord/basket>

<tr>
   <td>
     <table border="0" align="center">
     <tr>
       <td class="contentbar2">
         <table border="0" cellspacing="0" cellpadding="2" align="center">
         <tr class="contentbar2">
           <td colspan="2" align=center><B>Create A New Eros Shop 
Account</b></td>
         </tr>
         <tr class="contentbar1">
           <td align="right"><b>&nbsp;Username</b>:&nbsp;</td>
           <td align="left"><input type="text" NAME=mv_username VALUE=""></td>
         </tr>
         <tr class="contentbar1">
           <td align="right"><b>&nbsp;Password</b>:&nbsp;</td>
           <td align="left"><INPUT TYPE=text NAME=mv_password VALUE=""></td>
         </tr>
         <tr class="contentbar1">
           <td align="right"><b>&nbsp;Verify Password</b>:&nbsp;</td>
           <td align="left"><INPUT TYPE=text NAME=mv_verify VALUE=""></td>
         </tr>
         <tr class="contentbar1">
           <td colspan="2" align="center">
            <INPUT TYPE="image" VALUE="Create Account" 
src="__THEME_IMG_DIR__createaccount_button.gif" border=0 alt="Create Account">
           </td>
         </tr>
         </table>
      </td>
     </tr>
     </table>
   </td>
</tr>
</form>
</table>


Many thanks

Mark



Eros Shop
vwe internet ltd
PO BOX 1067
SLOUGH
SL1 7YA
UK

Shop - http://www.eros-shop.co.uk
EMail - info at eros-shop.co.uk
Tel - 0870 737 3369
Fax - 0870 737 4469




More information about the interchange-users mailing list