Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
2e9f1a9d
Commit
2e9f1a9d
authored
Sep 06, 2016
by
Patricio Bruna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin as an option for login
parent
22fcc500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.js
src/index.js
+2
-1
No files found.
src/index.js
View file @
2e9f1a9d
...
...
@@ -21,6 +21,7 @@ class ZimbraAdminApi {
this
.
url
=
auth_object
.
url
;
this
.
user
=
auth_object
.
user
;
this
.
password
=
auth_object
.
password
;
this
.
isAdmin
=
auth_object
.
isAdmin
||
true
;
this
.
_client
=
new
jszimbra
.
Communication
({
url
:
auth_object
.
url
});
this
.
dictionary
=
new
Dictionary
();
this
.
arrayAsObject
=
auth_object
.
arrayAsObject
||
false
;
...
...
@@ -86,7 +87,7 @@ class ZimbraAdminApi {
login
(
callback
)
{
let
auth_object
=
{
'username'
:
this
.
user
,
'secret'
:
this
.
password
,
'isPassword'
:
true
,
'isAdmin'
:
t
rue
'isPassword'
:
true
,
'isAdmin'
:
t
his
.
isAdmin
};
let
that
=
this
;
this
.
client
.
auth
(
auth_object
,
function
(
err
,
response
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment