From: Errietta Kostala Date: Wed, 21 Jan 2015 11:07:57 +0000 (+0000) Subject: Add autocreate user and add openid login back X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c2ab34976078af676adcf006768f6ebf350d2cfb;p=scpubgit%2Fstemmaweb.git Add autocreate user and add openid login back --- diff --git a/lib/stemmaweb.pm b/lib/stemmaweb.pm index b200635..1a9da7d 100644 --- a/lib/stemmaweb.pm +++ b/lib/stemmaweb.pm @@ -103,7 +103,8 @@ __PACKAGE__->config( store => { class => 'Model::KiokuDB', model_name => 'Directory', - } + }, + auto_create_user => 1, }, }, ## Auth with CatalystX::Controller::Auth diff --git a/root/src/auth/login.tt b/root/src/auth/login.tt index 7e3437e..1d1a6c2 100644 --- a/root/src/auth/login.tt +++ b/root/src/auth/login.tt @@ -96,6 +96,16 @@ $(document).ready(function() { +

Sign in with OpenID

+
+

If you have an account with an OpenID provider (e.g. WordPress, Blogger, Flickr, Yahoo), you may use it to sign into Stemmaweb. +

+ + + +
+
+ [% UNLESS c.req.param('realm') == 'openid' %]

Sign in with Stemmaweb