Skip to content
Snippets Groups Projects
Commit 3da6b3b5 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #11229 from kofemann/for-upstream

user/backed: use pow of two for backed action constants
parents 74f6e04b 276f50a1
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment