##// END OF EJS Templates
auth: Fix password_changed function, fixes #4043....
auth: Fix password_changed function, fixes #4043. Never repot a changed password for default or anonymous users. If anonymous access is disabled we don't get the default user here so we also have to check if it is the anonymous user. In both cases (default user and anonymous user) we can skip the password change check and return False.

File last commit:

r290:5b75602e default
r482:930b0a4d default
Show More
user_registration.mako
22 lines | 581 B | application/x-mako | MakoHtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="base.mako"/>
<%def name="subject()" filter="n,trim">
RhodeCode new user registration
</%def>
## plain text version of the email. Empty by default
<%def name="body_plaintext()" filter="n,trim">
A new user `${user.username}` has registered on ${h.format_date(date)}
- Username: ${user.username}
- Full Name: ${user.firstname} ${user.lastname}
- Email: ${user.email}
- Profile link: ${h.url('user_profile', username=user.username, qualified=True)}
</%def>
## BODY GOES BELOW
<div style="white-space: pre-wrap">
${body_plaintext()}
</div>