summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-24 15:19:11 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-24 15:19:11 +0200
commit3da6b3b5334d5661506593d66d22e2cf358582fd (patch)
treeb3276accd765c89e621672ec2a7300f861086851 /lib/private/user
parent74f6e04b17e32705796e2c4b91d867763bdc8606 (diff)
parent276f50a1ba6b894a2acf2df24e3d761c0bad4ec0 (diff)
downloadnextcloud-server-3da6b3b5334d5661506593d66d22e2cf358582fd.tar.gz
nextcloud-server-3da6b3b5334d5661506593d66d22e2cf358582fd.zip
Merge pull request #11229 from kofemann/for-upstream
user/backed: use pow of two for backed action constants
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/backend.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/private/user/backend.php b/lib/private/user/backend.php
index 56c63085f18..1f0a524117d 100644
--- a/lib/private/user/backend.php
+++ b/lib/private/user/backend.php
@@ -31,15 +31,14 @@ define('OC_USER_BACKEND_NOT_IMPLEMENTED', -501);
/**
* actions that user backends can define
*/
-define('OC_USER_BACKEND_CREATE_USER', 0x00000001);
-define('OC_USER_BACKEND_SET_PASSWORD', 0x00000010);
-define('OC_USER_BACKEND_CHECK_PASSWORD', 0x00000100);
-define('OC_USER_BACKEND_GET_HOME', 0x00001000);
-define('OC_USER_BACKEND_GET_DISPLAYNAME', 0x00010000);
-define('OC_USER_BACKEND_SET_DISPLAYNAME', 0x00100000);
-define('OC_USER_BACKEND_PROVIDE_AVATAR', 0x01000000);
-define('OC_USER_BACKEND_COUNT_USERS', 0x10000000);
-//more actions cannot be defined without breaking 32bit platforms!
+define('OC_USER_BACKEND_CREATE_USER', 1 << 0);
+define('OC_USER_BACKEND_SET_PASSWORD', 1 << 4);
+define('OC_USER_BACKEND_CHECK_PASSWORD', 1 << 8);
+define('OC_USER_BACKEND_GET_HOME', 1 << 12);
+define('OC_USER_BACKEND_GET_DISPLAYNAME', 1 << 16);
+define('OC_USER_BACKEND_SET_DISPLAYNAME', 1 << 20);
+define('OC_USER_BACKEND_PROVIDE_AVATAR', 1 << 24);
+define('OC_USER_BACKEND_COUNT_USERS', 1 << 28);
/**
* Abstract base class for user management. Provides methods for querying backend