User: Ignore authenticated and authorized on object creation

This commit is contained in:
Matias Griese
2019-01-18 14:11:33 +02:00
parent fb9baaed8a
commit b94631533d
2 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
* Broke out Medium timestamp so it's not cleared on `reset()s`
* Fixed issue with `redirect_trailing_slash` losing query string [#2269](https://github.com/getgrav/grav/issues/2269)
* Fixed failed login if user attempts to log in with upper case non-english letters
* Removed extra authenticated/authorized fields when saving existing user from a form
# v1.6.0-beta.7
## 12/14/2018

View File

@@ -86,6 +86,13 @@ class User extends Data
return $user;
}
public function __construct(array $items = [], $blueprints = null)
{
unset($items['authenticated'], $items['authorized']);
parent::__construct($items, $blueprints);
}
/**
* Remove user account.
*