Email address can now be null in a password reset. This is needed for next_id to work.
This commit is contained in:
parent
fa288418e5
commit
7c2bd7f767
|
@ -5,7 +5,7 @@ class Password_reset( Persistent ):
|
|||
"""
|
||||
A request for a password reset.
|
||||
"""
|
||||
def __init__( self, object_id, email_address, redeemed = False ):
|
||||
def __init__( self, object_id, email_address = None, redeemed = False ):
|
||||
"""
|
||||
Create a password reset request with the given id.
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ ALTER TABLE public.notebook_current OWNER TO luminotes;
|
|||
|
||||
CREATE TABLE password_reset (
|
||||
id text NOT NULL,
|
||||
email_address text NOT NULL,
|
||||
email_address text,
|
||||
redeemed boolean
|
||||
);
|
||||
|
||||
|
|
Reference in New Issue