You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Ido Ran <id...@gmail.com> on 2010/09/15 23:00:33 UTC

Username is case-sensative

Hi,
While testing how CouchApp works in iPhone I notice that the authentication
using username and password check the user name in case-sensitive maner.
I think it's bad because in my iPhone for example when I write my name it
always fix it to be with capital first letter.
I guess the fix is easy and important.

Thank you,
Ido

Re: Username is case-sensative

Posted by Chris Anderson <jc...@apache.org>.
On Sat, Sep 18, 2010 at 3:04 AM, Ido Ran <id...@gmail.com> wrote:
> Hi,
>
> All right.
> I agree that using Hebrew usename and password is a good solution. I think
> people not using it much because of legacy software which simply fail to
> support Hebrew username and/or passwords but I'm glad to say CouchDB handle
> it excellent.

one issue to be aware of, is that couchdb does have a restricted
character set for database names. the solution when using a database
per user is to use a hash function to derive the database name from
the user name.

I did it like this once:

http://github.com/jchris/twebz/blob/master/lib/twebz.js#L16

Chris

>
> Hopefully the iPhone capital fix will solve 90% of the problem.
>
> Thanks to anyone answer here. I never imaging it will create such rich
> discussion.
>
> Ido
>
> On Sat, Sep 18, 2010 at 2:53 AM, Chris Anderson <jc...@apache.org> wrote:
>
>> On Fri, Sep 17, 2010 at 12:59 PM, Mark J. Reed <ma...@gmail.com>
>> wrote:
>> > On Fri, Sep 17, 2010 at 3:21 PM, Chris Anderson <jc...@apache.org>
>> wrote:
>> >> I'd love a patch for that against this file:
>> >>
>> >>
>> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>> >
>> > Okay..
>> >
>>
>> Thanks. This is applied in couchapp/couchapp and will propagate to my
>> other apps as I next work on them.
>>
>>
>> http://github.com/couchapp/couchapp/commit/5a34c3c8a4bc96d580a896735836adc2c51a88bd
>>
>> The magical case-folding stuff is entirely untenable. I'm sorry about
>> it not working with the non-English use case. But for the case of
>> login-names, why not have your username be in Hebrew script in the
>> first place, avoiding the issue entirely?
>>
>> Chris
>>
>> > index 1d30c1d..301dfb6 100644
>> > --- a/vendor/evently/account/loginForm/mustache.html
>> > +++ b/vendor/evently/account/loginForm/mustache.html
>> > @@ -1,5 +1,5 @@
>> >  <form>
>> > -  <label for="name">Name</label> <input type="text" name="name"
>> value="">
>> > +  <label for="name">Name</label> <input type="text" name="name"
>> > value="" autocapitalize="off">
>> >   <label for="password">Password</label> <input type="password"
>> > name="password" value="">
>> >   <input type="submit" value="Login">
>> >   <a href="#signup">or Signup</a>
>> >
>> > --
>> > Mark J. Reed <ma...@gmail.com>
>> >
>>
>>
>>
>> --
>> Chris Anderson
>> http://jchrisa.net
>> http://couch.io
>>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Re: Username is case-sensative

Posted by Tyler Gillies <ty...@pdxbrain.com>.
On Sat, Sep 18, 2010 at 3:04 AM, Ido Ran <id...@gmail.com> wrote:

>
> Hopefully the iPhone capital fix will solve 90% of the problem.
>
>
IIRC, you can disable auto-capitalization in iPhone settings

-- 
http://www.readwriteweb.com/about#tyler

My website: http://list.pdxbrain.com

Re: Username is case-sensative

Posted by Ido Ran <id...@gmail.com>.
Hi,

All right.
I agree that using Hebrew usename and password is a good solution. I think
people not using it much because of legacy software which simply fail to
support Hebrew username and/or passwords but I'm glad to say CouchDB handle
it excellent.

Hopefully the iPhone capital fix will solve 90% of the problem.

Thanks to anyone answer here. I never imaging it will create such rich
discussion.

Ido

On Sat, Sep 18, 2010 at 2:53 AM, Chris Anderson <jc...@apache.org> wrote:

> On Fri, Sep 17, 2010 at 12:59 PM, Mark J. Reed <ma...@gmail.com>
> wrote:
> > On Fri, Sep 17, 2010 at 3:21 PM, Chris Anderson <jc...@apache.org>
> wrote:
> >> I'd love a patch for that against this file:
> >>
> >>
> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
> >
> > Okay..
> >
>
> Thanks. This is applied in couchapp/couchapp and will propagate to my
> other apps as I next work on them.
>
>
> http://github.com/couchapp/couchapp/commit/5a34c3c8a4bc96d580a896735836adc2c51a88bd
>
> The magical case-folding stuff is entirely untenable. I'm sorry about
> it not working with the non-English use case. But for the case of
> login-names, why not have your username be in Hebrew script in the
> first place, avoiding the issue entirely?
>
> Chris
>
> > index 1d30c1d..301dfb6 100644
> > --- a/vendor/evently/account/loginForm/mustache.html
> > +++ b/vendor/evently/account/loginForm/mustache.html
> > @@ -1,5 +1,5 @@
> >  <form>
> > -  <label for="name">Name</label> <input type="text" name="name"
> value="">
> > +  <label for="name">Name</label> <input type="text" name="name"
> > value="" autocapitalize="off">
> >   <label for="password">Password</label> <input type="password"
> > name="password" value="">
> >   <input type="submit" value="Login">
> >   <a href="#signup">or Signup</a>
> >
> > --
> > Mark J. Reed <ma...@gmail.com>
> >
>
>
>
> --
> Chris Anderson
> http://jchrisa.net
> http://couch.io
>

Re: Username is case-sensative

Posted by Chris Anderson <jc...@apache.org>.
On Fri, Sep 17, 2010 at 12:59 PM, Mark J. Reed <ma...@gmail.com> wrote:
> On Fri, Sep 17, 2010 at 3:21 PM, Chris Anderson <jc...@apache.org> wrote:
>> I'd love a patch for that against this file:
>>
>> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>
> Okay..
>

Thanks. This is applied in couchapp/couchapp and will propagate to my
other apps as I next work on them.

http://github.com/couchapp/couchapp/commit/5a34c3c8a4bc96d580a896735836adc2c51a88bd

The magical case-folding stuff is entirely untenable. I'm sorry about
it not working with the non-English use case. But for the case of
login-names, why not have your username be in Hebrew script in the
first place, avoiding the issue entirely?

Chris

> index 1d30c1d..301dfb6 100644
> --- a/vendor/evently/account/loginForm/mustache.html
> +++ b/vendor/evently/account/loginForm/mustache.html
> @@ -1,5 +1,5 @@
>  <form>
> -  <label for="name">Name</label> <input type="text" name="name" value="">
> +  <label for="name">Name</label> <input type="text" name="name"
> value="" autocapitalize="off">
>   <label for="password">Password</label> <input type="password"
> name="password" value="">
>   <input type="submit" value="Login">
>   <a href="#signup">or Signup</a>
>
> --
> Mark J. Reed <ma...@gmail.com>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Re: Username is case-sensative

Posted by "Mark J. Reed" <ma...@gmail.com>.
On Fri, Sep 17, 2010 at 3:21 PM, Chris Anderson <jc...@apache.org> wrote:
> I'd love a patch for that against this file:
>
> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html

Okay..

index 1d30c1d..301dfb6 100644
--- a/vendor/evently/account/loginForm/mustache.html
+++ b/vendor/evently/account/loginForm/mustache.html
@@ -1,5 +1,5 @@
 <form>
-  <label for="name">Name</label> <input type="text" name="name" value="">
+  <label for="name">Name</label> <input type="text" name="name"
value="" autocapitalize="off">
   <label for="password">Password</label> <input type="password"
name="password" value="">
   <input type="submit" value="Login">
   <a href="#signup">or Signup</a>

-- 
Mark J. Reed <ma...@gmail.com>

Re: Username is case-sensative

Posted by Zachary Zolton <za...@gmail.com>.
You'd probably also wanna check the user doc IDs for caps in a
validate_doc_update function.
—Zach

On Fri, Sep 17, 2010 at 2:24 PM, Damien Katz <da...@apache.org> wrote:
> A simple fix for this is to normalize to lowercase names during registration and login, then the user can put in whatever mixed case they want.
>
> -Damien
>
>
> On Sep 17, 2010, at 12:21 PM, Chris Anderson wrote:
>
>> On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
>>> I agree, it should not be forced - I think it should be the default.
>>> If you know what you are doing and have a good reason to use case-sensitive
>>> usernames then go ahead, but for the rest of us, it should be as simple as
>>> it can.
>>> How Couch people say - case-insensitive username is more relaxing :)
>>>
>>
>> CouchDB uses document lookups to find users, so doing this would
>> involve making docids case-insensitive, which isn't gonna happen.
>>
>> The good answer would be to add whatever iPhone tags you have to add
>> to keep it from doing that stupid auto-shift key thing on login forms.
>>
>> I'd love a patch for that against this file:
>>
>> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>>
>> Chris
>>
>>> Ido
>>>
>>> On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <ro...@gmail.com>wrote:
>>>
>>>> The question is whether CouchDB should force everyone to do that or
>>>> not. I think it should not.
>>>>
>>>> B.
>>>>
>>>> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com> wrote:
>>>>> I think case insensitivity is good, prevents thing from getting
>>>> complicated
>>>>> with two users one named tyler and one named Tyler
>>>>>
>>>>> On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <randall.leeds@gmail.com
>>>>> wrote:
>>>>>
>>>>>> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>>>>>>> Unix, Linux, Windows, Gmail, Skype
>>>>>>>
>>>>>>> Any application I can think of treat username in case-insensitive way.
>>>>>>
>>>>>> Really???
>>>>>>
>>>>>> rleeds@randalltor:~$ sudo -u Rleeds
>>>>>> sudo: unknown user: Rleeds
>>>>>> rleeds@randalltor:~$
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://www.readwriteweb.com/about#tyler
>>>>>
>>>>> Ask me anything <http://tumble.pdxbrain.com/ask>!
>>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Chris Anderson
>> http://jchrisa.net
>> http://couch.io
>
>

Re: Username is case-sensative

Posted by Damien Katz <da...@apache.org>.
A simple fix for this is to normalize to lowercase names during registration and login, then the user can put in whatever mixed case they want.

-Damien


On Sep 17, 2010, at 12:21 PM, Chris Anderson wrote:

> On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
>> I agree, it should not be forced - I think it should be the default.
>> If you know what you are doing and have a good reason to use case-sensitive
>> usernames then go ahead, but for the rest of us, it should be as simple as
>> it can.
>> How Couch people say - case-insensitive username is more relaxing :)
>> 
> 
> CouchDB uses document lookups to find users, so doing this would
> involve making docids case-insensitive, which isn't gonna happen.
> 
> The good answer would be to add whatever iPhone tags you have to add
> to keep it from doing that stupid auto-shift key thing on login forms.
> 
> I'd love a patch for that against this file:
> 
> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
> 
> Chris
> 
>> Ido
>> 
>> On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <ro...@gmail.com>wrote:
>> 
>>> The question is whether CouchDB should force everyone to do that or
>>> not. I think it should not.
>>> 
>>> B.
>>> 
>>> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com> wrote:
>>>> I think case insensitivity is good, prevents thing from getting
>>> complicated
>>>> with two users one named tyler and one named Tyler
>>>> 
>>>> On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <randall.leeds@gmail.com
>>>> wrote:
>>>> 
>>>>> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>>>>>> Unix, Linux, Windows, Gmail, Skype
>>>>>> 
>>>>>> Any application I can think of treat username in case-insensitive way.
>>>>> 
>>>>> Really???
>>>>> 
>>>>> rleeds@randalltor:~$ sudo -u Rleeds
>>>>> sudo: unknown user: Rleeds
>>>>> rleeds@randalltor:~$
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> http://www.readwriteweb.com/about#tyler
>>>> 
>>>> Ask me anything <http://tumble.pdxbrain.com/ask>!
>>>> 
>>> 
>> 
> 
> 
> 
> -- 
> Chris Anderson
> http://jchrisa.net
> http://couch.io


Re: Username is case-sensative

Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 18 September 2010 08:06, Ido Ran <id...@gmail.com> wrote:
> It is not just about iPhone capitalizing the first letter.
> I'm surround by people who talk Hebrew for the natural language so their
> computer have both Hebrew and English inputs.
> Some of the people have hard time change between languages so those who use
> Windows simply press the CapsLock key which make Windows write in capital
> English letters. I'm sure there are other cases where user might enter a
> username in different capitalization then the one they used when
> registering.
>
> I think it will be best to default for case-insensitive search for
> usernames.
>
> That is all.
>
> Ido
>
> On Fri, Sep 17, 2010 at 9:59 PM, Stephen Prater <st...@agrussell.com>wrote:
>
>> Just lowercase (or uppercase, if you like) your user names before you stick
>> 'em in the database or query for them.
>>
>> Case-insensitive docids are not efficient -   Because A and a are not the
>> same value, and you'd have to check for every permutation of capitAliZatION
>> to see if the docid was taken.
>>
>> stephen
>>
>>
>> On Sep 17, 2010, at 2:45 PM, Ido Ran wrote:
>>
>>  I agree that the auto-shift is not that bright, but start patch the login
>>> form for every thing out there may get harder.
>>> Don't you think default to case-insensitive search will be better?
>>>
>>> Ido
>>>
>>> On Fri, Sep 17, 2010 at 9:21 PM, Chris Anderson <jc...@apache.org>
>>> wrote:
>>>
>>>  On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
>>>>
>>>>> I agree, it should not be forced - I think it should be the default.
>>>>> If you know what you are doing and have a good reason to use
>>>>>
>>>> case-sensitive
>>>>
>>>>> usernames then go ahead, but for the rest of us, it should be as simple
>>>>>
>>>> as
>>>>
>>>>> it can.
>>>>> How Couch people say - case-insensitive username is more relaxing :)
>>>>>
>>>>>
>>>> CouchDB uses document lookups to find users, so doing this would
>>>> involve making docids case-insensitive, which isn't gonna happen.
>>>>
>>>> The good answer would be to add whatever iPhone tags you have to add
>>>> to keep it from doing that stupid auto-shift key thing on login forms.
>>>>
>>>> I'd love a patch for that against this file:
>>>>
>>>>
>>>>
>>>> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>>>>
>>>> Chris
>>>>
>>>>  Ido
>>>>>
>>>>> On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <robert.newson@gmail.com
>>>>> wrote:
>>>>>
>>>>>  The question is whether CouchDB should force everyone to do that or
>>>>>> not. I think it should not.
>>>>>>
>>>>>> B.
>>>>>>
>>>>>> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com>
>>>>>>
>>>>> wrote:
>>>>
>>>>> I think case insensitivity is good, prevents thing from getting
>>>>>>>
>>>>>> complicated
>>>>>>
>>>>>>> with two users one named tyler and one named Tyler
>>>>>>>
>>>>>>> On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <
>>>>>>>
>>>>>> randall.leeds@gmail.com
>>>>
>>>>> wrote:
>>>>>>>
>>>>>>>  On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Unix, Linux, Windows, Gmail, Skype
>>>>>>>>>
>>>>>>>>> Any application I can think of treat username in case-insensitive
>>>>>>>>>
>>>>>>>> way.
>>>>
>>>>>
>>>>>>>> Really???
>>>>>>>>
>>>>>>>> rleeds@randalltor:~$ sudo -u Rleeds
>>>>>>>> sudo: unknown user: Rleeds
>>>>>>>> rleeds@randalltor:~$
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> http://www.readwriteweb.com/about#tyler
>>>>>>>
>>>>>>> Ask me anything <http://tumble.pdxbrain.com/ask>!
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Chris Anderson
>>>> http://jchrisa.net
>>>> http://couch.io
>>>>
>>>>
>>
>

mmmmm bikeshed.

Case folding is an issue unique to latin script languages, and one
with several possible solutions especially when you layer unicode on
top. Should e-acute and e-grave both be identical to E capital, or
should that be E-acute and E-grave?

If you introduce case folding for usernames, which today CouchDB sees
simply as a normal database, then as jchris points out it needs to
appear elsewhere in the code - handlers, shows and lists, validation
functions.More complexity = mode code = more bugs. Case folding seems
simple until you need to write code to handle it.

https://apps01.domino.griffith.edu.au/help/help65_admin.nsf/89d3962efd85426f85256b870069c0aa/f67aeb7a98ebdda285256dff004af990?OpenDocument&Click=

I think CouchDB should remain case sensitive. This fits well with a
document-oriented DB, & avoids needing many workarounds in different
places for just 1 mobile platform - validation functions,shows, lists,
UUID checks - where would it end?

The 1 line iPhone form fix for evently gets my vote.

Cheers
Dave

Re: Username is case-sensative

Posted by Tyler Gillies <ty...@pdxbrain.com>.
On Fri, Sep 17, 2010 at 1:06 PM, Ido Ran <id...@gmail.com> wrote:

>
> Some of the people have hard time change between languages so those who use
> Windows simply press the CapsLock key which make Windows write in capital
> English letters.


So *thats* where all the people using caplocks are coming from!

-- 
http://www.readwriteweb.com/about#tyler

My website: http://list.pdxbrain.com

Re: Username is case-sensative

Posted by Ido Ran <id...@gmail.com>.
It is not just about iPhone capitalizing the first letter.
I'm surround by people who talk Hebrew for the natural language so their
computer have both Hebrew and English inputs.
Some of the people have hard time change between languages so those who use
Windows simply press the CapsLock key which make Windows write in capital
English letters. I'm sure there are other cases where user might enter a
username in different capitalization then the one they used when
registering.

I think it will be best to default for case-insensitive search for
usernames.

That is all.

Ido

On Fri, Sep 17, 2010 at 9:59 PM, Stephen Prater <st...@agrussell.com>wrote:

> Just lowercase (or uppercase, if you like) your user names before you stick
> 'em in the database or query for them.
>
> Case-insensitive docids are not efficient -   Because A and a are not the
> same value, and you'd have to check for every permutation of capitAliZatION
> to see if the docid was taken.
>
> stephen
>
>
> On Sep 17, 2010, at 2:45 PM, Ido Ran wrote:
>
>  I agree that the auto-shift is not that bright, but start patch the login
>> form for every thing out there may get harder.
>> Don't you think default to case-insensitive search will be better?
>>
>> Ido
>>
>> On Fri, Sep 17, 2010 at 9:21 PM, Chris Anderson <jc...@apache.org>
>> wrote:
>>
>>  On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
>>>
>>>> I agree, it should not be forced - I think it should be the default.
>>>> If you know what you are doing and have a good reason to use
>>>>
>>> case-sensitive
>>>
>>>> usernames then go ahead, but for the rest of us, it should be as simple
>>>>
>>> as
>>>
>>>> it can.
>>>> How Couch people say - case-insensitive username is more relaxing :)
>>>>
>>>>
>>> CouchDB uses document lookups to find users, so doing this would
>>> involve making docids case-insensitive, which isn't gonna happen.
>>>
>>> The good answer would be to add whatever iPhone tags you have to add
>>> to keep it from doing that stupid auto-shift key thing on login forms.
>>>
>>> I'd love a patch for that against this file:
>>>
>>>
>>>
>>> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>>>
>>> Chris
>>>
>>>  Ido
>>>>
>>>> On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <robert.newson@gmail.com
>>>> wrote:
>>>>
>>>>  The question is whether CouchDB should force everyone to do that or
>>>>> not. I think it should not.
>>>>>
>>>>> B.
>>>>>
>>>>> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com>
>>>>>
>>>> wrote:
>>>
>>>> I think case insensitivity is good, prevents thing from getting
>>>>>>
>>>>> complicated
>>>>>
>>>>>> with two users one named tyler and one named Tyler
>>>>>>
>>>>>> On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <
>>>>>>
>>>>> randall.leeds@gmail.com
>>>
>>>> wrote:
>>>>>>
>>>>>>  On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Unix, Linux, Windows, Gmail, Skype
>>>>>>>>
>>>>>>>> Any application I can think of treat username in case-insensitive
>>>>>>>>
>>>>>>> way.
>>>
>>>>
>>>>>>> Really???
>>>>>>>
>>>>>>> rleeds@randalltor:~$ sudo -u Rleeds
>>>>>>> sudo: unknown user: Rleeds
>>>>>>> rleeds@randalltor:~$
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> http://www.readwriteweb.com/about#tyler
>>>>>>
>>>>>> Ask me anything <http://tumble.pdxbrain.com/ask>!
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Chris Anderson
>>> http://jchrisa.net
>>> http://couch.io
>>>
>>>
>

Re: Username is case-sensative

Posted by Stephen Prater <st...@agrussell.com>.
Just lowercase (or uppercase, if you like) your user names before you  
stick 'em in the database or query for them.

Case-insensitive docids are not efficient -   Because A and a are not  
the same value, and you'd have to check for every permutation of  
capitAliZatION to see if the docid was taken.

stephen

On Sep 17, 2010, at 2:45 PM, Ido Ran wrote:

> I agree that the auto-shift is not that bright, but start patch the  
> login
> form for every thing out there may get harder.
> Don't you think default to case-insensitive search will be better?
>
> Ido
>
> On Fri, Sep 17, 2010 at 9:21 PM, Chris Anderson <jc...@apache.org>  
> wrote:
>
>> On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
>>> I agree, it should not be forced - I think it should be the default.
>>> If you know what you are doing and have a good reason to use
>> case-sensitive
>>> usernames then go ahead, but for the rest of us, it should be as  
>>> simple
>> as
>>> it can.
>>> How Couch people say - case-insensitive username is more relaxing :)
>>>
>>
>> CouchDB uses document lookups to find users, so doing this would
>> involve making docids case-insensitive, which isn't gonna happen.
>>
>> The good answer would be to add whatever iPhone tags you have to add
>> to keep it from doing that stupid auto-shift key thing on login  
>> forms.
>>
>> I'd love a patch for that against this file:
>>
>>
>> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>>
>> Chris
>>
>>> Ido
>>>
>>> On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <robert.newson@gmail.com
>>> wrote:
>>>
>>>> The question is whether CouchDB should force everyone to do that or
>>>> not. I think it should not.
>>>>
>>>> B.
>>>>
>>>> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com>
>> wrote:
>>>>> I think case insensitivity is good, prevents thing from getting
>>>> complicated
>>>>> with two users one named tyler and one named Tyler
>>>>>
>>>>> On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <
>> randall.leeds@gmail.com
>>>>> wrote:
>>>>>
>>>>>> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>>>>>>> Unix, Linux, Windows, Gmail, Skype
>>>>>>>
>>>>>>> Any application I can think of treat username in case- 
>>>>>>> insensitive
>> way.
>>>>>>
>>>>>> Really???
>>>>>>
>>>>>> rleeds@randalltor:~$ sudo -u Rleeds
>>>>>> sudo: unknown user: Rleeds
>>>>>> rleeds@randalltor:~$
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://www.readwriteweb.com/about#tyler
>>>>>
>>>>> Ask me anything <http://tumble.pdxbrain.com/ask>!
>>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Chris Anderson
>> http://jchrisa.net
>> http://couch.io
>>


Re: Username is case-sensative

Posted by Michael <ne...@gmail.com>.
Why no just add autocapitalize="off" to avoid autocaps on the login?

Should probably add autocorrect="off" too.


http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/html/attribute/autocapitalize
http://stackoverflow.com/questions/1580793/how-can-i-avoid-iphone-safari-first-letter-in-caps

Am I missing something?

Michael

Re: Username is case-sensative

Posted by Ido Ran <id...@gmail.com>.
I agree that the auto-shift is not that bright, but start patch the login
form for every thing out there may get harder.
Don't you think default to case-insensitive search will be better?

Ido

On Fri, Sep 17, 2010 at 9:21 PM, Chris Anderson <jc...@apache.org> wrote:

> On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
> > I agree, it should not be forced - I think it should be the default.
> > If you know what you are doing and have a good reason to use
> case-sensitive
> > usernames then go ahead, but for the rest of us, it should be as simple
> as
> > it can.
> > How Couch people say - case-insensitive username is more relaxing :)
> >
>
> CouchDB uses document lookups to find users, so doing this would
> involve making docids case-insensitive, which isn't gonna happen.
>
> The good answer would be to add whatever iPhone tags you have to add
> to keep it from doing that stupid auto-shift key thing on login forms.
>
> I'd love a patch for that against this file:
>
>
> http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html
>
> Chris
>
> > Ido
> >
> > On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <robert.newson@gmail.com
> >wrote:
> >
> >> The question is whether CouchDB should force everyone to do that or
> >> not. I think it should not.
> >>
> >> B.
> >>
> >> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com>
> wrote:
> >> > I think case insensitivity is good, prevents thing from getting
> >> complicated
> >> > with two users one named tyler and one named Tyler
> >> >
> >> > On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <
> randall.leeds@gmail.com
> >> >wrote:
> >> >
> >> >> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
> >> >> > Unix, Linux, Windows, Gmail, Skype
> >> >> >
> >> >> > Any application I can think of treat username in case-insensitive
> way.
> >> >>
> >> >> Really???
> >> >>
> >> >> rleeds@randalltor:~$ sudo -u Rleeds
> >> >> sudo: unknown user: Rleeds
> >> >> rleeds@randalltor:~$
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > http://www.readwriteweb.com/about#tyler
> >> >
> >> > Ask me anything <http://tumble.pdxbrain.com/ask>!
> >> >
> >>
> >
>
>
>
> --
> Chris Anderson
> http://jchrisa.net
> http://couch.io
>

Re: Username is case-sensative

Posted by Chris Anderson <jc...@apache.org>.
On Fri, Sep 17, 2010 at 3:07 AM, Ido Ran <id...@gmail.com> wrote:
> I agree, it should not be forced - I think it should be the default.
> If you know what you are doing and have a good reason to use case-sensitive
> usernames then go ahead, but for the rest of us, it should be as simple as
> it can.
> How Couch people say - case-insensitive username is more relaxing :)
>

CouchDB uses document lookups to find users, so doing this would
involve making docids case-insensitive, which isn't gonna happen.

The good answer would be to add whatever iPhone tags you have to add
to keep it from doing that stupid auto-shift key thing on login forms.

I'd love a patch for that against this file:

http://github.com/couchapp/couchapp/blob/master/vendor/evently/account/loginForm/mustache.html

Chris

> Ido
>
> On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <ro...@gmail.com>wrote:
>
>> The question is whether CouchDB should force everyone to do that or
>> not. I think it should not.
>>
>> B.
>>
>> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com> wrote:
>> > I think case insensitivity is good, prevents thing from getting
>> complicated
>> > with two users one named tyler and one named Tyler
>> >
>> > On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <randall.leeds@gmail.com
>> >wrote:
>> >
>> >> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>> >> > Unix, Linux, Windows, Gmail, Skype
>> >> >
>> >> > Any application I can think of treat username in case-insensitive way.
>> >>
>> >> Really???
>> >>
>> >> rleeds@randalltor:~$ sudo -u Rleeds
>> >> sudo: unknown user: Rleeds
>> >> rleeds@randalltor:~$
>> >>
>> >
>> >
>> >
>> > --
>> > http://www.readwriteweb.com/about#tyler
>> >
>> > Ask me anything <http://tumble.pdxbrain.com/ask>!
>> >
>>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Re: Username is case-sensative

Posted by Ido Ran <id...@gmail.com>.
I agree, it should not be forced - I think it should be the default.
If you know what you are doing and have a good reason to use case-sensitive
usernames then go ahead, but for the rest of us, it should be as simple as
it can.
How Couch people say - case-insensitive username is more relaxing :)

Ido

On Fri, Sep 17, 2010 at 3:32 AM, Robert Newson <ro...@gmail.com>wrote:

> The question is whether CouchDB should force everyone to do that or
> not. I think it should not.
>
> B.
>
> On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com> wrote:
> > I think case insensitivity is good, prevents thing from getting
> complicated
> > with two users one named tyler and one named Tyler
> >
> > On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <randall.leeds@gmail.com
> >wrote:
> >
> >> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
> >> > Unix, Linux, Windows, Gmail, Skype
> >> >
> >> > Any application I can think of treat username in case-insensitive way.
> >>
> >> Really???
> >>
> >> rleeds@randalltor:~$ sudo -u Rleeds
> >> sudo: unknown user: Rleeds
> >> rleeds@randalltor:~$
> >>
> >
> >
> >
> > --
> > http://www.readwriteweb.com/about#tyler
> >
> > Ask me anything <http://tumble.pdxbrain.com/ask>!
> >
>

Re: Username is case-sensative

Posted by Robert Newson <ro...@gmail.com>.
The question is whether CouchDB should force everyone to do that or
not. I think it should not.

B.

On Fri, Sep 17, 2010 at 2:23 AM, Tyler Gillies <ty...@pdxbrain.com> wrote:
> I think case insensitivity is good, prevents thing from getting complicated
> with two users one named tyler and one named Tyler
>
> On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <ra...@gmail.com>wrote:
>
>> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
>> > Unix, Linux, Windows, Gmail, Skype
>> >
>> > Any application I can think of treat username in case-insensitive way.
>>
>> Really???
>>
>> rleeds@randalltor:~$ sudo -u Rleeds
>> sudo: unknown user: Rleeds
>> rleeds@randalltor:~$
>>
>
>
>
> --
> http://www.readwriteweb.com/about#tyler
>
> Ask me anything <http://tumble.pdxbrain.com/ask>!
>

Re: Username is case-sensative

Posted by Tyler Gillies <ty...@pdxbrain.com>.
I think case insensitivity is good, prevents thing from getting complicated
with two users one named tyler and one named Tyler

On Thu, Sep 16, 2010 at 12:50 PM, Randall Leeds <ra...@gmail.com>wrote:

> On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
> > Unix, Linux, Windows, Gmail, Skype
> >
> > Any application I can think of treat username in case-insensitive way.
>
> Really???
>
> rleeds@randalltor:~$ sudo -u Rleeds
> sudo: unknown user: Rleeds
> rleeds@randalltor:~$
>



-- 
http://www.readwriteweb.com/about#tyler

Ask me anything <http://tumble.pdxbrain.com/ask>!

Re: Username is case-sensative

Posted by Randall Leeds <ra...@gmail.com>.
On Thu, Sep 16, 2010 at 03:13, Ido Ran <id...@gmail.com> wrote:
> Unix, Linux, Windows, Gmail, Skype
>
> Any application I can think of treat username in case-insensitive way.

Really???

rleeds@randalltor:~$ sudo -u Rleeds
sudo: unknown user: Rleeds
rleeds@randalltor:~$

Re: Username is case-sensative

Posted by Ido Ran <id...@gmail.com>.
Unix, Linux, Windows, Gmail, Skype

Any application I can think of treat username in case-insensitive way.

Ido.

On Thu, Sep 16, 2010 at 10:06 AM, Sebastian Cohnen <
sebastiancohnen@googlemail.com> wrote:

> where is this the "standard"?
>
> On 16.09.2010, at 00:29, Ido Ran wrote:
>
> > I agree, the thing is for novice user this might not be so obvious.
> > The standard is that only the password is case-sensitive not the
> username.
> >
> > Ido
> >
> > On Wed, Sep 15, 2010 at 11:09 PM, Robert Newson <robert.newson@gmail.com
> >wrote:
> >
> >> I notice this on my iPhone with many sites. I push the shift button in
> >> these circumstances.
> >>
> >> B.
> >>
> >> On Wed, Sep 15, 2010 at 10:00 PM, Ido Ran <id...@gmail.com> wrote:
> >>> Hi,
> >>> While testing how CouchApp works in iPhone I notice that the
> >> authentication
> >>> using username and password check the user name in case-sensitive
> maner.
> >>> I think it's bad because in my iPhone for example when I write my name
> it
> >>> always fix it to be with capital first letter.
> >>> I guess the fix is easy and important.
> >>>
> >>> Thank you,
> >>> Ido
> >>>
> >>
>
>

Re: Username is case-sensative

Posted by Sebastian Cohnen <se...@googlemail.com>.
where is this the "standard"?

On 16.09.2010, at 00:29, Ido Ran wrote:

> I agree, the thing is for novice user this might not be so obvious.
> The standard is that only the password is case-sensitive not the username.
> 
> Ido
> 
> On Wed, Sep 15, 2010 at 11:09 PM, Robert Newson <ro...@gmail.com>wrote:
> 
>> I notice this on my iPhone with many sites. I push the shift button in
>> these circumstances.
>> 
>> B.
>> 
>> On Wed, Sep 15, 2010 at 10:00 PM, Ido Ran <id...@gmail.com> wrote:
>>> Hi,
>>> While testing how CouchApp works in iPhone I notice that the
>> authentication
>>> using username and password check the user name in case-sensitive maner.
>>> I think it's bad because in my iPhone for example when I write my name it
>>> always fix it to be with capital first letter.
>>> I guess the fix is easy and important.
>>> 
>>> Thank you,
>>> Ido
>>> 
>> 


Re: Username is case-sensative

Posted by Ido Ran <id...@gmail.com>.
I agree, the thing is for novice user this might not be so obvious.
The standard is that only the password is case-sensitive not the username.

Ido

On Wed, Sep 15, 2010 at 11:09 PM, Robert Newson <ro...@gmail.com>wrote:

> I notice this on my iPhone with many sites. I push the shift button in
> these circumstances.
>
> B.
>
> On Wed, Sep 15, 2010 at 10:00 PM, Ido Ran <id...@gmail.com> wrote:
> > Hi,
> > While testing how CouchApp works in iPhone I notice that the
> authentication
> > using username and password check the user name in case-sensitive maner.
> > I think it's bad because in my iPhone for example when I write my name it
> > always fix it to be with capital first letter.
> > I guess the fix is easy and important.
> >
> > Thank you,
> > Ido
> >
>

Re: Username is case-sensative

Posted by Robert Newson <ro...@gmail.com>.
I notice this on my iPhone with many sites. I push the shift button in
these circumstances.

B.

On Wed, Sep 15, 2010 at 10:00 PM, Ido Ran <id...@gmail.com> wrote:
> Hi,
> While testing how CouchApp works in iPhone I notice that the authentication
> using username and password check the user name in case-sensitive maner.
> I think it's bad because in my iPhone for example when I write my name it
> always fix it to be with capital first letter.
> I guess the fix is easy and important.
>
> Thank you,
> Ido
>