Remove password reset functionality
Backend: - Remove ForgotPassword API handler - Remove password reset token model and database table - Remove email service for sending reset emails - Remove SMTP configuration Frontend: - Remove /auth/forgot page - Remove forgot password link from login page - Remove forgot route from auth-only routes check
This commit is contained in:
parent
c459cc1efb
commit
abd7e3a97f
9 changed files with 5 additions and 425 deletions
|
|
@ -8,7 +8,6 @@ import (
|
|||
"github.com/imc-vibe/backend/internal/auth"
|
||||
"github.com/imc-vibe/backend/internal/config"
|
||||
"github.com/imc-vibe/backend/internal/db"
|
||||
"github.com/imc-vibe/backend/internal/mail"
|
||||
)
|
||||
|
||||
type Router struct {
|
||||
|
|
@ -24,10 +23,9 @@ type Router struct {
|
|||
|
||||
func New(database *db.DB, cfg *config.Config) *Router {
|
||||
jwtManager := auth.NewJWTManager(cfg.JWTSecret, "imc-vibe")
|
||||
emailService := mail.NewEmailService(cfg)
|
||||
|
||||
r := &Router{
|
||||
authHandler: handlers.NewAuthHandler(database, jwtManager, emailService, cfg.TrustedProxies),
|
||||
authHandler: handlers.NewAuthHandler(database, jwtManager, cfg.TrustedProxies),
|
||||
domainHandler: handlers.NewDomainHandler(database),
|
||||
userHandler: handlers.NewUserHandler(database),
|
||||
aliasHandler: handlers.NewAliasHandler(database),
|
||||
|
|
@ -46,7 +44,6 @@ func (r *Router) RegisterRoutes(engine *gin.Engine) {
|
|||
})
|
||||
|
||||
engine.POST("/api/auth/login", r.authHandler.Login)
|
||||
engine.POST("/api/auth/forgot", r.authHandler.ForgotPassword)
|
||||
engine.POST("/api/auth/logout", r.authHandler.Logout)
|
||||
|
||||
authGroup := engine.Group("/api")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue