incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: Username is case-sensative
Date Sat, 18 Sep 2010 14:13:34 GMT
On Sat, Sep 18, 2010 at 3:04 AM, Ido Ran <ido.ran@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 <jchris@apache.org> wrote:
>
>> On Fri, Sep 17, 2010 at 12:59 PM, Mark J. Reed <markjreed@gmail.com>
>> wrote:
>> > On Fri, Sep 17, 2010 at 3:21 PM, Chris Anderson <jchris@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 <markjreed@gmail.com>
>> >
>>
>>
>>
>> --
>> Chris Anderson
>> http://jchrisa.net
>> http://couch.io
>>
>



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

Mime
View raw message