mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-22 07:04:56 +01:00
implement deactivation & add route
This commit is contained in:
@@ -68,6 +68,9 @@ func (controller *AuthController) Auth(c echo.Context) error {
|
||||
|
||||
accessToken, refreshToken, err := controller.svc.GenerateToken(c.Request().Context(), body.Login, body.Password, body.RefreshToken)
|
||||
if err != nil {
|
||||
if err.Error() == responses.AccountDeactivatedError.Message {
|
||||
return c.JSON(http.StatusUnauthorized, responses.AccountDeactivatedError)
|
||||
}
|
||||
return c.JSON(http.StatusUnauthorized, responses.BadAuthError)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user