#NEWLINE# def auth_user_remote_user( self , username ) : #NEWLINE# #INDENT# '\n            REMOTE_USER user Authentication\n\n            :type self: User model\n        ' #NEWLINE# user = self . find_user ( username = username ) #NEWLINE# if ( ( user is None ) or ( not user . is_active ( ) ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . update_user_auth_stat ( user ) #NEWLINE# return user