The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/accounts-gitlab/gitlab.js

19 lines
598 B

Accounts.oauth.registerService('gitlab');
if (Meteor.isClient) {
Meteor.loginWithGitlab = function(options, callback) {
// support a callback without options
if (! callback && typeof options === "function") {
callback = options;
options = null;
}
var credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompleteHandler(callback);
Gitlab.requestCredential(options, credentialRequestCompleteCallback);
};
} else {
Accounts.addAutopublishFields({
forLoggedInUser: ['services.gitlab'],
forOtherUsers: ['services.gitlab.username']
});
}