},
## kiokudb auth store testing
'Plugin::Authentication' => {
+ form_handler => '+stemmaweb::Authentication::FormHandler',
default => {
credential => {
class => 'Password',
realm => 'default',
login_fields => { openid => [qw/openid_identifier/],
default => [qw/username password remember/],
+ google => [qw/email id_token/],
},
},
'View::Email::Template' => {
my ($class, $config, $app, $realm) = @_;
$class = ref $class || $class;
+ warn "MEEP\n\n";
+
my $self = {
_config => $config,
_app => $app,
username => $sub,
password => $user->password,
role => $user->role,
+ active => $user->active,
});
foreach my $t (@{ $user->traditions }) {
$realm->delete_user({ username => $user->id });
+
return $new_user;
}
--- /dev/null
+package stemmaweb::Authentication::FormHandler;
+
+use HTML::FormHandler::Moose;
+use namespace::autoclean;
+
+extends 'HTML::FormHandlerX::Form::Login';
+
+has_field email => (
+ type => 'Text',
+ required => 0,
+);
+
+has_field id_token => (
+ type => 'Text',
+ required => 0,
+);
+
+
+1;