This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/pages/login/controller.php
Chris fc9de5b15c
All checks were successful
Build and push / Pulling repo on server (push) Successful in 19s
added unique but sortable time
2023-10-21 22:12:56 +02:00

30 lines
699 B
PHP

<?php
class Login extends Page {
function index()
{
$this->set('hello','world');
$this->set('template', 'login.html');
//return print_r($_REQUEST, true);
}
function test()
{
return nl2br(print_r([
'uuid' => gen_ulid(),
'timestamp' => ulid_to_timestamp("01HD9XN98F8SGT01X527KBNHRN"),
'freshtime' => ulid_to_timestamp(gen_ulid())
],true));
}
function validate()
{
$email = $_REQUEST['email'];
$password = $_REQUEST['password'];
$remember = $_REQUEST['remember'];
return print_r(['email'=>$email,'password'=>$password,'remember'=>$remember], true);
}
}