summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/TwoFactorAuth
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /lib/private/Authentication/TwoFactorAuth
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
downloadnextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.tar.gz
nextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.zip
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Authentication/TwoFactorAuth')
-rw-r--r--lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php2
-rw-r--r--lib/private/Authentication/TwoFactorAuth/Manager.php8
-rw-r--r--lib/private/Authentication/TwoFactorAuth/ProviderLoader.php2
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php b/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php
index a5ddad47e01..02e6863d1c4 100644
--- a/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php
+++ b/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php
@@ -35,7 +35,7 @@ use OCP\IDBConnection;
* 2FA providers
*/
class ProviderUserAssignmentDao {
- const TABLE_NAME = 'twofactor_providers';
+ public const TABLE_NAME = 'twofactor_providers';
/** @var IDBConnection */
private $conn;
diff --git a/lib/private/Authentication/TwoFactorAuth/Manager.php b/lib/private/Authentication/TwoFactorAuth/Manager.php
index ec414e67938..07e61175361 100644
--- a/lib/private/Authentication/TwoFactorAuth/Manager.php
+++ b/lib/private/Authentication/TwoFactorAuth/Manager.php
@@ -46,10 +46,10 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class Manager {
- const SESSION_UID_KEY = 'two_factor_auth_uid';
- const SESSION_UID_DONE = 'two_factor_auth_passed';
- const REMEMBER_LOGIN = 'two_factor_remember_login';
- const BACKUP_CODES_PROVIDER_ID = 'backup_codes';
+ public const SESSION_UID_KEY = 'two_factor_auth_uid';
+ public const SESSION_UID_DONE = 'two_factor_auth_passed';
+ public const REMEMBER_LOGIN = 'two_factor_remember_login';
+ public const BACKUP_CODES_PROVIDER_ID = 'backup_codes';
/** @var ProviderLoader */
private $providerLoader;
diff --git a/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php b/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
index 0754679adf1..40385d737ae 100644
--- a/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
+++ b/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
@@ -35,7 +35,7 @@ use OCP\Authentication\TwoFactorAuth\IProvider;
use OCP\IUser;
class ProviderLoader {
- const BACKUP_CODES_APP_ID = 'twofactor_backupcodes';
+ public const BACKUP_CODES_APP_ID = 'twofactor_backupcodes';
/** @var IAppManager */
private $appManager;