]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/blobdiff - cmd/app/main.go
Password reset.
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git] / cmd / app / main.go
index 65e8b5a49af92b4dbda73472595b33883aebea77..a0463d260d0d839151ff18ee7f52ff57f622f249 100644 (file)
@@ -21,8 +21,8 @@ type AppConfig struct {
 }
 
 type ApiConfig struct {
-       Domain    string `toml:"domain"`
-       JwtSecret string `toml:"jwt_secret"`
+       api.Config
+       Domain string `toml:"domain"`
 }
 
 type Config struct {
@@ -45,9 +45,6 @@ func (c *Config) SetToDefaults() {
                App: AppConfig{
                        PublicDir: "./public",
                },
-               Api: ApiConfig{
-                       JwtSecret: "secret",
-               },
        }
 
        c.LogConfiguration.SetToDefaults()
@@ -63,7 +60,7 @@ func init() {
                panic(err)
        }
 
-       api.SetJwtSecretKey(C.Api.JwtSecret)
+       api.SetConfig(C.Api.Config)
 
        db.Init(C.Db, C.Redis)
 
@@ -142,6 +139,8 @@ func main() {
                "/",
                "/signup",
                "/signin",
+               "/reset-password",
+               "/change-password",
                "/signout",
                "/me",
                "/otp/enroll",