Skip to content

Commit

Permalink
Merge pull request web2py#1458 from niphlod/fix/1455
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro authored Sep 23, 2016
2 parents 075f493 + 40d6a72 commit be1ab13
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gluon/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

import base64
from functools import reduce
from gluon._compat import pickle, thread, urllib2, Cookie, StringIO, configparser, MIMEBase, MIMEMultipart, \
MIMEText, Encoders, Charset, long, urllib_quote, iteritems, to_bytes, to_native, add_charset, \
charset_QP, basestring, unicodeT, to_unicode
from gluon._compat import pickle, thread, urllib2, Cookie, StringIO
from gluon._compat import configparser, MIMEBase, MIMEMultipart, MIMEText
from gluon._compat import Encoders, Charset, long, urllib_quote, iteritems
from gluon._compat import to_bytes, to_native, add_charset
from gluon._compat import charset_QP, basestring, unicodeT, to_unicode
import datetime
import logging
import sys
Expand All @@ -40,8 +42,9 @@
from gluon.fileutils import read_file, check_credentials
from gluon import *
from gluon.contrib.autolinks import expand_one
from gluon.contrib.markmin.markmin2html import \
replace_at_urls, replace_autolinks, replace_components
from gluon.contrib.markmin.markmin2html import replace_at_urls
from gluon.contrib.markmin.markmin2html import replace_autolinks
from gluon.contrib.markmin.markmin2html import replace_components
from pydal.objects import Row, Set, Query

import gluon.serializers as serializers
Expand Down Expand Up @@ -1578,7 +1581,6 @@ class Auth(object):
logged_out='Logged out',
registration_successful='Registration successful',
invalid_email='Invalid email',
unable_send_email='Unable to send email',
invalid_login='Invalid login',
invalid_user='Invalid user',
invalid_password='Invalid password',
Expand Down Expand Up @@ -3633,7 +3635,7 @@ def reset_password_deprecated(self,
message=self.messages.retrieve_password % dict(password=password)):
session.flash = self.messages.email_sent
else:
session.flash = self.messages.unable_to_send_email
session.flash = self.messages.unable_send_email
self.log_event(log, user)
callback(onaccept, form)
if not next:
Expand Down Expand Up @@ -3930,7 +3932,7 @@ def request_reset_password(self,
if self.email_reset_password(user):
session.flash = self.messages.email_sent
else:
session.flash = self.messages.unable_to_send_email
session.flash = self.messages.unable_send_email
self.log_event(log, user)
callback(onaccept, form)
if not next:
Expand Down

0 comments on commit be1ab13

Please sign in to comment.