Constructor
new module:Service($http, $injector, $rootScope, authenticationBaseUrl, gmfUser)
Parameters:
Name | Type | Description |
---|---|---|
$http |
angular.$http | Angular http service. |
$injector |
angular.$injector | Main injector. |
$rootScope |
angular.Scope | The directive's scope. |
authenticationBaseUrl |
string | URL to "authentication" web service. |
gmfUser |
gmfx.User | User. |
Extends
- ol.events.EventTarget
Methods
changePassword(oldPwd, newPwd, confPwd)
Parameters:
Name | Type | Description |
---|---|---|
oldPwd |
string | Old password. |
newPwd |
string | New password. |
confPwd |
string | New password confirmation. |
Returns:
angular.$q.Promise
Promise.
getFunctionalities()
Returns:
?gmfx.AuthenticationFunctionalities
The role functionalities.
getRoleId()
Returns:
number|null
The role ID.
login(login, pwd)
Parameters:
Name | Type | Description |
---|---|---|
login |
string | Login name. |
pwd |
string | Password. |
Returns:
angular.$q.Promise
Promise.
logout()
Returns:
angular.$q.Promise
Promise.
resetPassword(login)
Parameters:
Name | Type | Description |
---|---|---|
login |
string | Login name. |
Returns:
angular.$q.Promise
Promise.