Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
b4422f5850
@ -118,22 +118,16 @@ def check_if_expired():
|
|||||||
|
|
||||||
# if expired, stop user from logging in
|
# if expired, stop user from logging in
|
||||||
from webnotes.utils import formatdate
|
from webnotes.utils import formatdate
|
||||||
|
msg = """Oops! Your subscription expired on <b>%s</b>.<br>""" % formatdate(conf.expires_on)
|
||||||
|
|
||||||
if 'System Manager' in webnotes.user.roles:
|
if 'System Manager' in webnotes.user.roles:
|
||||||
webnotes.response['server_messages'] = """Oops! \
|
msg += """Just drop in a mail at <b>support@erpnext.com</b> and
|
||||||
Your subscription expired on <b>%s</b>.
|
we will guide you to get your account re-activated."""
|
||||||
|
|
||||||
Nothing catastrophic.
|
|
||||||
|
|
||||||
Just drop in a mail at <b>support@erpnext.com</b> and \
|
|
||||||
we will guide you to get your account re-activated.""" % formatdate(conf.expires_on)
|
|
||||||
else:
|
else:
|
||||||
webnotes.response['server_messages'] = """Oops! \
|
msg += """Just ask your System Manager to drop in a mail at <b>support@erpnext.com</b> and
|
||||||
Your subscription expired on <b>%s</b>.
|
we will guide him to get your account re-activated."""
|
||||||
|
|
||||||
Nothing catastrophic.
|
webnotes.msgprint(msg)
|
||||||
|
|
||||||
Just ask your System Manager to drop in a mail at <b>support@erpnext.com</b> and \
|
|
||||||
we will guide him to get your account re-activated.""" % formatdate(conf.expires_on)
|
|
||||||
|
|
||||||
webnotes.response['message'] = 'Account Expired'
|
webnotes.response['message'] = 'Account Expired'
|
||||||
raise webnotes.AuthenticationError
|
raise webnotes.AuthenticationError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user