Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
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
ulakbus
ulakbus-ui
Commits
02894d54
Commit
02894d54
authored
Aug 31, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auth url and data format changed
parent
3b3f211e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
auth_controller.js
app/components/auth/auth_controller.js
+1
-1
auth_service.js
app/components/auth/auth_service.js
+1
-1
No files found.
app/components/auth/auth_controller.js
View file @
02894d54
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
var
auth
=
angular
.
module
(
'ulakbus.auth'
,
[
'ngRoute'
,
'schemaForm'
,
'ngCookies'
,
'general'
]);
var
auth
=
angular
.
module
(
'ulakbus.auth'
,
[
'ngRoute'
,
'schemaForm'
,
'ngCookies'
,
'general'
]);
auth
.
controller
(
'LoginCtrl'
,
function
(
$scope
,
$q
,
$timeout
,
$routeParams
,
Generator
,
LoginService
)
{
auth
.
controller
(
'LoginCtrl'
,
function
(
$scope
,
$q
,
$timeout
,
$routeParams
,
Generator
,
LoginService
)
{
$scope
.
url
=
'
simple_
login'
;
$scope
.
url
=
'login'
;
$scope
.
form_params
=
{};
$scope
.
form_params
=
{};
$scope
.
form_params
[
'clear_wf'
]
=
1
;
$scope
.
form_params
[
'clear_wf'
]
=
1
;
// todo: change simple login when api ready
// todo: change simple login when api ready
...
...
app/components/auth/auth_service.js
View file @
02894d54
...
@@ -13,7 +13,7 @@ auth.factory('LoginService', function ($http, $rootScope, $location, $log, $cook
...
@@ -13,7 +13,7 @@ auth.factory('LoginService', function ($http, $rootScope, $location, $log, $cook
var
loginService
=
{};
var
loginService
=
{};
loginService
.
login
=
function
(
url
,
credentials
)
{
loginService
.
login
=
function
(
url
,
credentials
)
{
credentials
=
{
login_crd
:
credentials
,
cmd
:
"do"
}
;
credentials
[
'cmd'
]
=
"do"
;
return
$http
return
$http
.
post
(
RESTURL
.
url
+
url
,
credentials
)
.
post
(
RESTURL
.
url
+
url
,
credentials
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
...
...
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