#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# ' A custom init because we need to change the label if no usernames is used ' #NEWLINE# super ( AuthenticationForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'remember_me' ] . label = ( _ ( 'Remember me for %(days)s' ) % { #NEWLINE# #INDENT# 'days' : _ ( userena_settings . USERENA_REMEMBER_ME_DAYS [ 0 ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# if userena_settings . USERENA_WITHOUT_USERNAMES : #NEWLINE# #INDENT# self . fields [ 'identification' ] = identification_field_factory ( _ ( 'Email' ) , _ ( 'Please supply your email.' ) )