Skip to content

Commit

Permalink
several fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
M. Kamil Sulubulut committed Jul 14, 2015
1 parent e9fa3c0 commit ea4668d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basyt-angular",
"version": "0.2.4",
"version": "0.2.5",
"description": "basyt AngularJS Module",
"repository": {
"type": "git",
Expand Down
10 changes: 2 additions & 8 deletions dist/basyt.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('basyt.angular', ['ui.router'])
if (!Auth.isAuthenticated(next.role)) {
if($alert) {
$alert({
title: BasytAuthMessages.loginRequired,
title: BasytAuthMessages.authFailed,
type: 'danger',
duration: 6
})
Expand Down Expand Up @@ -112,13 +112,6 @@ angular.module('basyt.angular')
if (angular.isUndefined(User.id))
return false;
$rootScope.activeUser = User;
if($alert) {
$alert({
title: BasytAuthMessages.loginSuccess,
type: 'info',
duration: 3
})
}
$rootScope.activeUser.user_state = Auth.isLord()
? 'LORD'
: Auth.isAdmin()
Expand Down Expand Up @@ -162,6 +155,7 @@ angular.module('basyt.angular')
}, logout);
}
};
$rootScope.activeUser = User;
return Auth;
}]);
angular.module('basyt.angular')
Expand Down
2 changes: 1 addition & 1 deletion dist/basyt.angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion module.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('basyt.angular', ['ui.router'])
if (!Auth.isAuthenticated(next.role)) {
if($alert) {
$alert({
title: BasytAuthMessages.loginRequired,
title: BasytAuthMessages.authFailed,
type: 'danger',
duration: 6
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basyt-angular",
"version": "0.2.4",
"version": "0.2.5",
"description": "basyt AngularJS Module",
"repository": {
"type": "git",
Expand Down
8 changes: 1 addition & 7 deletions services/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ angular.module('basyt.angular')
if (angular.isUndefined(User.id))
return false;
$rootScope.activeUser = User;
if($alert) {
$alert({
title: BasytAuthMessages.loginSuccess,
type: 'info',
duration: 3
})
}
$rootScope.activeUser.user_state = Auth.isLord()
? 'LORD'
: Auth.isAdmin()
Expand Down Expand Up @@ -121,5 +114,6 @@ angular.module('basyt.angular')
}, logout);
}
};
$rootScope.activeUser = User;
return Auth;
}]);

0 comments on commit ea4668d

Please sign in to comment.