mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-14 04:16:54 +01:00
* [ADD] Added In-App notifications polling. It will show up a browser notification when there are pending notifications
* [MOD] Improved Javascript error handling * [MOD] Code refactoring Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
@@ -35,12 +35,6 @@ class UserPreferencesData
|
||||
* @var int
|
||||
*/
|
||||
public $user_id = 0;
|
||||
/**
|
||||
* Usar autentificación en 2 pasos
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $use2Fa = false;
|
||||
/**
|
||||
* Lenguaje del usuario
|
||||
*
|
||||
@@ -77,22 +71,10 @@ class UserPreferencesData
|
||||
* @var bool
|
||||
*/
|
||||
public $resultsAsCards = false;
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
* @var bool
|
||||
*/
|
||||
public function isUse2Fa()
|
||||
{
|
||||
return $this->use2Fa;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $use2Fa
|
||||
*/
|
||||
public function setUse2Fa($use2Fa)
|
||||
{
|
||||
$this->use2Fa = $use2Fa;
|
||||
}
|
||||
public $checkNotifications = true;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
@@ -260,4 +242,20 @@ class UserPreferencesData
|
||||
{
|
||||
$this->resultsAsCards = $resultsAsCards;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isCheckNotifications(): bool
|
||||
{
|
||||
return $this->checkNotifications;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $checkNotifications
|
||||
*/
|
||||
public function setCheckNotifications(bool $checkNotifications)
|
||||
{
|
||||
$this->checkNotifications = $checkNotifications;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user