~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/auth/authenticate.py

  • Committer: David Coles
  • Date: 2010-02-11 05:04:47 UTC
  • Revision ID: coles.david@gmail.com-20100211050447-xvv1zruhnu97zavz
Login: Better error message if account is disabled/expired

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
            # Don't allow login if it is expired or disabled.
95
95
            if auth_result.state == 'disabled' or auth_result.account_expired:
96
 
                raise AuthError("Account is not valid.")
 
96
                raise AuthError("Account is disabled. " +
 
97
                        "Please contact an Administrator.")
97
98
 
98
99
            return auth_result
99
100
        else: