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
65654395
Commit
65654395
authored
Jun 11, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp fix for login case
parent
29f5334e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
login_service.js
app/login/login_service.js
+3
-1
No files found.
app/login/login_service.js
View file @
65654395
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
// TODO: login url change with correct one
// TODO: login url change with correct one
login
.
factory
(
'LoginService'
,
function
(
$http
,
$rootScope
,
$location
,
Session
,
RESTURL
)
{
login
.
factory
(
'LoginService'
,
function
(
$http
,
$rootScope
,
$location
,
$log
,
Session
,
RESTURL
)
{
var
loginService
=
{};
var
loginService
=
{};
loginService
.
login
=
function
(
credentials
)
{
loginService
.
login
=
function
(
credentials
)
{
...
@@ -21,6 +21,8 @@ login.factory('LoginService', function ($http, $rootScope, $location, Session, R
...
@@ -21,6 +21,8 @@ login.factory('LoginService', function ($http, $rootScope, $location, Session, R
return
$http
return
$http
.
get
(
RESTURL
.
url
+
'login'
+
getParams
)
.
get
(
RESTURL
.
url
+
'login'
+
getParams
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
$log
.
info
(
res
.
data
[
0
]);
res
.
data
=
res
.
data
[
0
];
if
(
res
.
data
.
success
){
if
(
res
.
data
.
success
){
$rootScope
.
loggedInUser
=
true
;
$rootScope
.
loggedInUser
=
true
;
$location
.
path
(
"/dashboard"
);
$location
.
path
(
"/dashboard"
);
...
...
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