login_db_field => 'username',
action_after_login => '/index',
send_register_email => 0,
-# realm => 'openid',
+ realm => 'default',
login_fields => { openid => [qw/openid_identifier/],
- default => [qw/username password/],
+ default => [qw/username password remember/],
},
},
);
$c->response->body('Matched stemmaweb::Controller::Users in Users.');
}
+before login => sub {
+ my($self, $c) = @_;
+ $c->req->param( realm => 'openid')
+ if $c->req->param('openid-check');
+};
=head1 AUTHOR
</form>
+[% UNLESS c.req.param('realm') == 'openid' %]
<form method="post" action="[% c.uri_for_action('/users/login').hostless | html %]" autocomplete="off">
<input type="hidden" name="realm" value="default"/>
[% form.field('username').render %]
[% form.field('password').render %]
+ [% form.field('remember').render %]
[% form.field('submit').render %]
- </form>
\ No newline at end of file
+ </form>
+[% END %]
\ No newline at end of file