Skip to content
This repository was archived by the owner on Mar 5, 2020. It is now read-only.

Commit ad00187

Browse files
committed
Security fixed
1 parent 2b8c713 commit ad00187

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/pl/simplemethod/codebin/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ protected void configure(HttpSecurity http) throws Exception {
1818
http.authorizeRequests().antMatchers(HttpMethod.GET, "/**").permitAll();
1919
http.csrf().disable();
2020
http.cors().disable();
21-
/* http.authorizeRequests()
21+
22+
/* http.authorizeRequests()
2223
.antMatchers("/", "/**", "/postlogin", "/v1.0/**", "/404", "/logowanie/github")
2324
.permitAll()
2425
.anyRequest().fullyAuthenticated()

src/main/resources/public/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,15 @@ app.controller('dashboardGithub', function ($scope, $http, $cookies) {
350350
$scope.name = response.data.name;
351351
},
352352
function () {
353-
$scope.passCheck = false;
353+
window.location = "/";
354354
}
355355
);
356356

357357
$scope.logout = function () {
358358
$cookies.remove('token');
359359
$cookies.remove('id');
360360
window.location = "/";
361-
}
361+
};
362362
});
363363

364364
$('ul.nav > li > a.nav-link').click(function (e) {

0 commit comments

Comments
 (0)