#NEWLINE# def post( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# serializer = ResetPasswordSerializer ( data = request . data ) #NEWLINE# if ( not serializer . is_valid ( ) ) : #NEWLINE# #INDENT# return Response ( { #NEWLINE# #INDENT# 'errors' : serializer . errors , #NEWLINE# #UNINDENT# } , status = status . HTTP_400_BAD_REQUEST ) #NEWLINE# #UNINDENT# return Response ( { #NEWLINE# #INDENT# 'msg' : 'Password updated successfully.' , #NEWLINE# #UNINDENT# } , status = status . HTTP_200_OK )