factors/email(minor): fix default timeout being 0, which breaks task
This commit is contained in:
		| @ -23,11 +23,11 @@ class EmailFactorView(AuthenticationFactor): | ||||
|  | ||||
|     def get(self, request, *args, **kwargs): | ||||
|         nonce = Nonce.objects.create(user=self.pending_user) | ||||
|         LOGGER.debug("DEBUG %s", str(nonce.uuid)) | ||||
|         # Send mail to user | ||||
|         message = TemplateEmailMessage( | ||||
|             subject=_('Forgotten password'), | ||||
|             template_name='email/account_password_reset.html', | ||||
|             to=[self.pending_user.email], | ||||
|             template_context={ | ||||
|                 'url': self.request.build_absolute_uri( | ||||
|                     reverse('passbook_core:auth-password-reset', | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Langhammer, Jens
					Langhammer, Jens