#NEWLINE# @ route ( '<key>' , method = ( 'get' , 'post' ) ) #NEWLINE# def reset( self , request ) : #NEWLINE# #INDENT# 'Get reste form and rest password\n        ' #NEWLINE# key = request . urlargs [ 'key' ] #NEWLINE# backend = request . cache . auth_backend #NEWLINE# if ( not backend . confirm_auth_key ( request , key ) ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# if ( request . method == 'GET' ) : #NEWLINE# #INDENT# form = get_form_layout ( 'reset-password' ) #NEWLINE# if ( not form ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# html = form ( request ) . as_form ( action = request . full_path ( ) , enctype = 'multipart/form-data' , method = 'post' ) #NEWLINE# return self . html_response ( request , html ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return actions . reset_password ( request , key )