Exemplo n.º 1
0
        public void CreateUser(string authenticationCookie, string userName, string password, string userType)
        {
            string authUserName;

            ServiceUtils.Authenticate(_addin, authenticationCookie, out authUserName, null);
            ServiceUtils.Authorize(_addin, authUserName, PermissionsTable.Instance.CanManageUsers, null);

            _addin.CreateUser(authUserName, userName, password, userType, null);
        }
Exemplo n.º 2
0
        public void CreateUser(string authenticationCookie, string userName, string password, string userType, DateTime?expires)
        {
            string authUserName;

            Authenticate(_auth, authenticationCookie, out authUserName, null);
            Authorize(_auth, authUserName, PermissionsTable.Instance.CanManageUsers, null);

            _auth.CreateUser(authUserName, userName, password, userType, expires);
        }