Re: Changing django.contrib.auth to make passwords optional

2007-05-18 Thread Marty Alchin
On 5/18/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > I'm +1 on these changes, including using "!" as the "look somewhere > else for the password" designator. Would it really be "look somewhere else for the password" or would it be more like "if you got this far (all other authentication met

Re: Changing django.contrib.auth to make passwords optional

2007-05-18 Thread Jacob Kaplan-Moss
On 5/10/07, Simon Willison <[EMAIL PROTECTED]> wrote: > I propose the following changes: I'm +1 on these changes, including using "!" as the "look somewhere else for the password" designator. Jacob --~--~-~--~~~---~--~~ You received this message because you are s

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Jonathan Daugherty
# Blog post here: http://www.buriy.com/2007/may/12/django-openid-users/ # Download here: http://www.buriy.com/media/openid-solution.zip For anyone interested, the OpenID 2 release of our python OpenID library[1] will include a Django app with an example consumer and server, in addition to the exa

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread buriy
Blog post here: http://www.buriy.com/2007/may/12/django-openid-users/ Download here: http://www.buriy.com/media/openid-solution.zip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Max Derkachev
Sorry, I misunderstood. The last association is only deleted when the password is set. Got it. Regards, Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send ema

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Max Derkachev
> The problem with using a random password is that you can't answer the > question "does this account have a password set?". I need to be able > to answer that question because my OpenID implementation allows users > to associate mupltiple OpenIDs with a single account. I want to let > them delete

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Simon Willison
On May 11, 4:23 pm, Niels <[EMAIL PROTECTED]> wrote: > > Or you could use the traditional > > Unix password invalidator -- "!" -- which might be more mnemonic for > > some people and is easier to pick out of a data dump than a space (and > > will also never be a valid string, since we use '$' as a

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Malcolm Tredinnick
On Fri, 2007-05-11 at 08:23 -0700, Niels wrote: > On May 11, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > So does that mean that I should store a single blank space in the > > > password field to represent "no password set"? > > > > The purists will be breaking out the pitchfo

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Niels
On May 11, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > So does that mean that I should store a single blank space in the > > password field to represent "no password set"? > > The purists will be breaking out the pitchforks and flaming torches > ( :-) ), but that would be a backwar

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Malcolm Tredinnick
On Fri, 2007-05-11 at 14:51 +, Simon Willison wrote: > On May 11, 3:40 pm, Martin Winkler <[EMAIL PROTECTED]> wrote: > > > Certainly Oracle treats them empty string as equal to NULL. But does > > > that mean you can't put an empty string in a "not NULL" column in > > > Oracle? > > > > Exactly.

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Simon Willison
On May 11, 3:40 pm, Martin Winkler <[EMAIL PROTECTED]> wrote: > > Certainly Oracle treats them empty string as equal to NULL. But does > > that mean you can't put an empty string in a "not NULL" column in > > Oracle? > > Exactly. If you want to insert something meaningless into a column that > has

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Martin Winkler
> Certainly Oracle treats them empty string as equal to NULL. But does > that mean you can't put an empty string in a "not NULL" column in > Oracle? Exactly. If you want to insert something meaningless into a column that has a NOT NULL constraint in oracle, then you have to put at least one space

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Ivan Sagalaev
Simon Willison wrote: > The problem with using a random password is that you can't answer the > question "does this account have a password set?". I need to be able > to answer that question because my OpenID implementation allows users > to associate mupltiple OpenIDs with a single account. I wan

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Simon Willison
On May 11, 7:50 am, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > At the moment, django.contrib.auth does not support creating a user > > account without setting a password. > > Why not generate a random one? It won't break an ability to authenticate > using OpenID or any other backend for that mat

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Mikhail Gusarov
alized method to associate IS> OpenID's with User's but it's not the question of this thread. See the subject: "Changing django.contrib.auth to make passwords optional". IS> "Ugliness" is a subjective thing and I personally don't see IS> 'make_ra

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread buriy
On May 11, 5:30 am, Simon Willison <[EMAIL PROTECTED]> wrote: > I'm working on a new component for my Django OpenID package which will > provide support for associating one or more OpenIDs with a > django.contrib.auth User. As part of this, I want to include the > ability to register for a new use

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Ivan Sagalaev
Mikhail Gusarov wrote: > Because generation of random password is an ugly workaround. Your solution > requires long comment which explains to the reader of code, why do random > password is needed in first place. A comment in my code is about username part, not password :-). I would indeed be gl

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Malcolm Tredinnick
On Fri, 2007-05-11 at 09:50 +0200, Michael van der Westhuizen wrote: > Hi Simon, > > On 5/11/07, Simon Willison <[EMAIL PROTECTED]> wrote: > > > [snip] > > 1. The 'password' field in the User model should be altered to have > > blank=True. > > > > This would allow us to set blank passwords as an

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Michael van der Westhuizen
Hi Simon, On 5/11/07, Simon Willison <[EMAIL PROTECTED]> wrote: > [snip] > 1. The 'password' field in the User model should be altered to have > blank=True. > > This would allow us to set blank passwords as an empty string. It > would not require existing installations to make any schema changes

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Mikhail Gusarov
Twas brillig at 10:50:57 11.05.2007 UTC+04 when Ivan Sagalaev did gyre and gimble: >> At the moment, django.contrib.auth does not support creating a user account >> without setting a password. IS> Why not generate a random one? It won't break an ability to authenticate IS> using OpenID or

Re: Changing django.contrib.auth to make passwords optional

2007-05-10 Thread Ivan Sagalaev
Simon Willison wrote: > I'm working on a new component for my Django OpenID package which will > provide support for associating one or more OpenIDs with a > django.contrib.auth User. As part of this, I want to include the > ability to register for a new user account using an OpenID instead of > a

Changing django.contrib.auth to make passwords optional

2007-05-10 Thread Simon Willison
I'm working on a new component for my Django OpenID package which will provide support for associating one or more OpenIDs with a django.contrib.auth User. As part of this, I want to include the ability to register for a new user account using an OpenID instead of a password. At the moment, djang