diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2021-11-09 16:01:39 +0100 |
---|---|---|
committer | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-11-09 16:18:43 +0100 |
commit | 97975886290f65307c0636b3fcb502f4258b1978 (patch) | |
tree | 2478407be053e44681c0df927e691046f3bef492 /gpigeon-template.cgi | |
parent | 52fb6ab96259df5eb63ae4632317edcf5900f31c (diff) | |
download | gpigeon-97975886290f65307c0636b3fcb502f4258b1978.tar.gz gpigeon-97975886290f65307c0636b3fcb502f4258b1978.zip |
fixed width for login form, link form bugfix and +
- fixed width of 30 pixels for login form
- fix some issue with identifying gpg key in invite-tmpl template
- in database, pigeons are now users to avoid confusion
Diffstat (limited to 'gpigeon-template.cgi')
-rwxr-xr-x | gpigeon-template.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gpigeon-template.cgi b/gpigeon-template.cgi index 042b78f..c4fb6e9 100755 --- a/gpigeon-template.cgi +++ b/gpigeon-template.cgi @@ -205,11 +205,11 @@ sub PasswdLogin { } } my ($hash, $userid) = undef; - my $selecthash = qq{SELECT pass from pigeons where mail='$username' or name='$username';}; + my $selecthash = qq{SELECT pass from users where mail='$username' or name='$username';}; $hash = DbGetLine($dbh, $selecthash); if (defined $hash and length($hash) > 1){ if(argon2id_verify($hash,$pass)){ - my $selectuserid = qq{SELECT userid from pigeons where pass='$hash';}; + my $selectuserid = qq{SELECT userid from users where pass='$hash';}; $userid = DbGetLine($dbh, $selectuserid); if ($userid =~ /^([0-9]+)$/){ $userid = $1; @@ -372,9 +372,9 @@ print "Cache-Control: no-store, must-revalidate\n"; if($loginok){ $userid = $loginok; - my $user_mailaddr = DbGetLine($dbh, qq{SELECT mail from pigeons where userid='$userid';}); - my $nick = DbGetLine($dbh, qq{SELECT name from pigeons where userid='$userid';}); - my $isadmin = DbGetLine($dbh, qq{SELECT isadmin from pigeons where userid='$userid';}); + my $user_mailaddr = DbGetLine($dbh, qq{SELECT mail from users where userid='$userid';}); + my $nick = DbGetLine($dbh, qq{SELECT name from users where userid='$userid';}); + my $isadmin = DbGetLine($dbh, qq{SELECT isadmin from users where userid='$userid';}); LoginCookieGen($userid, $magic_cookie, $cookiesdir); if ($isadmin){ |