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
c2b396e5
Commit
c2b396e5
authored
Sep 30, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.0.3 FIX: error 403 but logged in
parent
5b6df6ca
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
interceptors.js
app/zetalib/interceptors.js
+2
-0
app.js
dist/app.js
+2
-2
components.js
dist/bower_components/components.js
+1
-1
No files found.
app/zetalib/interceptors.js
View file @
c2b396e5
...
@@ -56,6 +56,8 @@ app.config(['$httpProvider', function ($httpProvider) {
...
@@ -56,6 +56,8 @@ app.config(['$httpProvider', function ($httpProvider) {
}
}
if
(
rejection
.
status
===
403
)
{
if
(
rejection
.
status
===
403
)
{
if
(
rejection
.
data
.
is_login
==
true
){
if
(
rejection
.
data
.
is_login
==
true
){
$rootScope
.
loggedInUser
=
true
;
console
.
log
(
'user logged in'
);
if
(
$location
.
path
()
===
"/login"
){
if
(
$location
.
path
()
===
"/login"
){
$location
.
path
(
"/dashboard"
);
$location
.
path
(
"/dashboard"
);
}
}
...
...
dist/app.js
View file @
c2b396e5
This diff is collapsed.
Click to expand it.
dist/bower_components/components.js
View file @
c2b396e5
This diff is collapsed.
Click to expand it.
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