[AUTH][REMEMBER-ME] Changed name of column in rememberme_token database table to fix bug

This commit is contained in:
up201706832 2021-01-02 15:52:05 +00:00 committed by Hugo Sales
parent 15454cab7f
commit f9443f1e87
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -39,7 +39,7 @@ class RememberMeToken extends Entity
// {{{ Autocode // {{{ Autocode
private string $series; private string $series;
private string $value; private string $value;
private DateTimeInterface $lastUsed; private DateTimeInterface $lastused;
private string $class; private string $class;
private string $username; private string $username;
@ -65,15 +65,15 @@ class RememberMeToken extends Entity
return $this->value; return $this->value;
} }
public function setLastUsed(DateTimeInterface $lastUsed): self public function setLastUsed(DateTimeInterface $lastused): self
{ {
$this->lastUsed = $lastUsed; $this->lastused = $lastused;
return $this; return $this;
} }
public function getLastUsed(): DateTimeInterface public function getLastUsed(): DateTimeInterface
{ {
return $this->lastUsed; return $this->lastused;
} }
public function setClass(string $class): self public function setClass(string $class): self
@ -107,7 +107,7 @@ class RememberMeToken extends Entity
'fields' => [ 'fields' => [
'series' => ['type' => 'char', 'length' => 88, 'not null' => true], 'series' => ['type' => 'char', 'length' => 88, 'not null' => true],
'value' => ['type' => 'char', 'length' => 88, 'not null' => true], 'value' => ['type' => 'char', 'length' => 88, 'not null' => true],
'lastUsed' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP'], 'lastused' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP'],
'class' => ['type' => 'varchar', 'length' => 100, 'not null' => true], 'class' => ['type' => 'varchar', 'length' => 100, 'not null' => true],
'username' => ['type' => 'varchar', 'length' => 64, 'not null' => true], 'username' => ['type' => 'varchar', 'length' => 64, 'not null' => true],
], ],