auth
This commit is contained in:
parent
ab20b3843f
commit
c57914db7c
@ -80,7 +80,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and()
|
.and()
|
||||||
.formLogin()
|
.formLogin()
|
||||||
.loginPage("/login")
|
.loginPage("/login.xhtml")
|
||||||
.successHandler(authenticationSuccessHandler)
|
.successHandler(authenticationSuccessHandler)
|
||||||
.failureHandler(authenticationFailureHandler)
|
.failureHandler(authenticationFailureHandler)
|
||||||
.permitAll()
|
.permitAll()
|
||||||
|
@ -17,7 +17,6 @@ import ru.ulstu.user.error.UserIdExistsException;
|
|||||||
import ru.ulstu.user.error.UserIsUndeadException;
|
import ru.ulstu.user.error.UserIsUndeadException;
|
||||||
import ru.ulstu.user.error.UserLoginExistsException;
|
import ru.ulstu.user.error.UserLoginExistsException;
|
||||||
import ru.ulstu.user.error.UserNotActivatedException;
|
import ru.ulstu.user.error.UserNotActivatedException;
|
||||||
import ru.ulstu.user.error.UserNotFoundException;
|
|
||||||
import ru.ulstu.user.error.UserPasswordsNotValidOrNotMatchException;
|
import ru.ulstu.user.error.UserPasswordsNotValidOrNotMatchException;
|
||||||
import ru.ulstu.user.error.UserResetKeyError;
|
import ru.ulstu.user.error.UserResetKeyError;
|
||||||
import ru.ulstu.user.error.UserSendingMailException;
|
import ru.ulstu.user.error.UserSendingMailException;
|
||||||
@ -94,10 +93,10 @@ public class AdviceController {
|
|||||||
return handleException(ErrorConstants.USER_PASSWORDS_NOT_VALID_OR_NOT_MATCH);
|
return handleException(ErrorConstants.USER_PASSWORDS_NOT_VALID_OR_NOT_MATCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ExceptionHandler(UserNotFoundException.class)
|
// @ExceptionHandler(UserNotFoundException.class)
|
||||||
public ResponseExtended<String> handleUserNotFoundException(Throwable e) {
|
// public ResponseExtended<String> handleUserNotFoundException(Throwable e) {
|
||||||
return handleException(ErrorConstants.USER_NOT_FOUND, e.getMessage());
|
// return handleException(ErrorConstants.USER_NOT_FOUND, e.getMessage());
|
||||||
}
|
// }
|
||||||
|
|
||||||
@ExceptionHandler(UserNotActivatedException.class)
|
@ExceptionHandler(UserNotActivatedException.class)
|
||||||
public Response<Void> handleUserNotActivatedException(Throwable e) {
|
public Response<Void> handleUserNotActivatedException(Throwable e) {
|
||||||
|
@ -40,7 +40,7 @@ spring.liquibase.enabled=true
|
|||||||
# Application Settings
|
# Application Settings
|
||||||
ng-tracker.base-url=http://127.0.0.1:8080
|
ng-tracker.base-url=http://127.0.0.1:8080
|
||||||
ng-tracker.undead-user-login=admin
|
ng-tracker.undead-user-login=admin
|
||||||
ng-tracker.dev-mode=true
|
ng-tracker.dev-mode=false
|
||||||
ng-tracker.debug_email=romanov73@gmail.com
|
ng-tracker.debug_email=romanov73@gmail.com
|
||||||
ng-tracker.use-https=false
|
ng-tracker.use-https=false
|
||||||
ng-tracker.check-run=false
|
ng-tracker.check-run=false
|
||||||
|
Loading…
Reference in New Issue
Block a user