#NEWLINE# def login_user( self , form ) : #NEWLINE# #INDENT# auth . login ( self . request , form . user ) #NEWLINE# expiry = ( settings . ACCOUNT_REMEMBER_ME_EXPIRY if form . cleaned_data . get ( 'remember' ) else 0 ) #NEWLINE# self . request . session . set_expiry ( expiry )