@view_config(request_method='POST')
    def post(self):
        self._redirect_if_logged_in()

        try:
            appstruct = self.form.validate(self.request.POST.items())
        except deform.ValidationFailure:
            return {'form': self.form.render()}

        user = appstruct['user']
        self._send_forgot_password_email(user)

        return httpexceptions.HTTPFound(
            self.request.route_path('reset_password'))
Handle submission of the forgot password form.
dataset/ETHPy150Open hypothesis/h/h/accounts/views.py/ForgotPasswordController.post