2 # Ikiwiki email address as login
3 package IkiWiki::Plugin::emailauth;
10 hook(type => "getsetup", id => "emailauth", "call" => \&getsetup);
11 IkiWiki::loadplugin("loginselector");
12 IkiWiki::Plugin::loginselector::register_login_plugin(
29 sub email_setup ($$) {
36 sub email_check_input ($) {
38 defined $cgi->param('do')
39 && $cgi->param("do") eq "signin"
40 && defined $cgi->param('Email_entry')
41 && length $cgi->param('Email_entry');
44 sub email_auth ($$$) {
47 my $errordisplayer=shift;
49 unless ($cgi->param('Email_entry') =~ /.\@./) {
50 $errordisplayer->("Invalid email address.");