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
a6dc0129
Commit
a6dc0129
authored
Apr 05, 2016
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login screen fix for showing dashboard view if not login
parent
2440378e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
app_routes.js
app/app_routes.js
+3
-1
auth_service.js
app/components/auth/auth_service.js
+1
-0
directives.js
app/shared/directives.js
+1
-1
No files found.
app/app_routes.js
View file @
a6dc0129
...
...
@@ -57,7 +57,9 @@ angular.module('ulakbus')
.
otherwise
({
redirectTo
:
'/dashboard'
});
}])
.
run
(
function
(
$rootScope
)
{
.
run
(
function
(
$rootScope
,
AuthService
)
{
AuthService
.
check_auth
();
$rootScope
.
loggedInUser
=
false
;
$rootScope
.
loginAttempt
=
0
;
...
...
app/components/auth/auth_service.js
View file @
a6dc0129
...
...
@@ -22,6 +22,7 @@ angular.module('ulakbus.auth')
return
$http
.
post
(
Generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
// if response data.cmd is 'upgrade'
if
(
data
.
cmd
===
'upgrade'
)
{
$rootScope
.
loggedInUser
=
true
;
$rootScope
.
$broadcast
(
"user_ready"
);
...
...
app/shared/directives.js
View file @
a6dc0129
...
...
@@ -318,7 +318,7 @@ angular.module('ulakbus')
};
// check login status
AuthService
.
check_auth
();
//
AuthService.check_auth();
var
generate_dashboard
=
function
()
{
if
(
$rootScope
.
current_user
!==
true
){
...
...
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