[gen] Added Config.discreetLogin allowing to put a discreet link on the main page for logging in, instead of the login form in the central strip, for sites where logged users do not represent the majority of visitors (only some admins).

This commit is contained in:
Gaetan Delannay 2013-05-10 12:16:57 +02:00
parent 8a0ee2c131
commit 820d3ef241
11 changed files with 94 additions and 86 deletions

View file

@ -74,8 +74,9 @@ class UserWrapper(AbstractWrapper):
# The user for which we change the password is the currently logged
# user. So update the authentication cookie, too.
tool._updateCookie(login, newPassword)
loggedUser = self.user.getId() or 'system|anon'
self.log('Password %s by "%s" for "%s".' % \
(msgPart, self.user.getId(), login))
(msgPart, loggedUser, login))
return newPassword
def checkPassword(self, clearPassword):