From: Jess Robinson Date: Mon, 28 May 2012 14:58:23 +0000 (+0000) Subject: Support email-attribute fetching from OpenID X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1628e97ad18529045f84726bb050484ac544169b;p=scpubgit%2Fstemmaweb.git Support email-attribute fetching from OpenID - store display value as email attribute - default to id if no display value - show display value on index page - add tests for openid type users --- diff --git a/lib/stemmaweb/Controller/Users.pm b/lib/stemmaweb/Controller/Users.pm index accc85b..19a72b5 100644 --- a/lib/stemmaweb/Controller/Users.pm +++ b/lib/stemmaweb/Controller/Users.pm @@ -19,7 +19,7 @@ Catalyst Controller. sub base :Chained('/') :PathPart('') :CaptureArgs(0) { my ( $self, $c ) = @_; - + $self->next::method( $c ); } diff --git a/root/src/index.tt b/root/src/index.tt index f2325b4..945f1e8 100644 --- a/root/src/index.tt +++ b/root/src/index.tt @@ -14,7 +14,7 @@ $(document).ready(function() {

Stemmaweb - a collection of tools for analysis of collated texts

- [% IF c.user_exists %]Hello! [% c.user.id %] [% ELSE %]Login | Register | [% END %]About | Help + [% IF c.user_exists %]Hello! [% c.user.get_object.display %] [% ELSE %]Login | Register | [% END %]About | Help

Text directory