afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-03-06 06:17 am

[dw-free] OpenID validatation email should be customized for OpenID accouns

[commit: http://hg.dwscoalition.org/dw-free/rev/ce12338f02b8]

http://bugs.dwscoalition.org/show_bug.cgi?id=311

Use display name instead of username in validation emails, for the benefit
of OpenID users.

Patch by [staff profile] denise.

Files modified:
  • htdocs/changeemail.bml
--------------------------------------------------------------------------------
diff -r 6f47b1016301 -r ce12338f02b8 htdocs/changeemail.bml
--- a/htdocs/changeemail.bml	Fri Mar 06 05:19:36 2009 +0000
+++ b/htdocs/changeemail.bml	Fri Mar 06 06:16:08 2009 +0000
@@ -151,7 +151,7 @@ warn "send email to old address: $old_em
             'charset' => 'utf-8',
             'subject' => $ML{'/editinfo.bml.newemail_old.subject'},
             'body'    => BML::ml('/editinfo.bml.newemail_old.body2',
-                              { username          => $u->{user},
+                              { username          => $u->display_username,
                                 ip                => BML::get_remote_ip(),
                                 old_email         => $old_email,
                                 new_email         => $POST{'email'},
@@ -171,7 +171,7 @@ warn "send email to new address: $POST{'
             'charset' => 'utf-8',
             'subject' => $ML{'/editinfo.bml.newemail.subject'},
             'body' => BML::ml('/editinfo.bml.newemail.body2',
-                              { username => $u->{user},
+                              { username => $u->display_username,
                                 sitename => $LJ::SITENAME,
                                 sitelink => $LJ::SITEROOT,
                                 conflink => "$LJ::SITEROOT/confirm/$aa->{'aaid'}.$aa->{'authcode'}" }),
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org