change namespace of beneficiaries created
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func (h *SilvermobiHandler) Login(ctx context.Context, username string, password string) (jwt string, err error) {
|
||||
account, err := h.Services.MobilityAccounts.Login(ctx, username, password, "silvermobi")
|
||||
account, err := h.Services.MobilityAccounts.Login(ctx, username, password, "parcoursmob_beneficiaries")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -32,7 +32,7 @@ func (h *SilvermobiHandler) Register(ctx context.Context, username string, passw
|
||||
"email": email,
|
||||
"phone_number": phone_number,
|
||||
},
|
||||
"silvermobi",
|
||||
"parcoursmob_beneficiaries",
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
|
||||
@@ -77,7 +77,7 @@ func (h *SilvermobiHandler) VerifyPhoneNumber(ctx context.Context, id string, ph
|
||||
}
|
||||
|
||||
func (h *SilvermobiHandler) UpdateBirthDate(ctx context.Context, id string, birthdate string) error {
|
||||
err := h.Services.MobilityAccounts.UpdateAccountBirthDate(ctx, id, "silvermobi", birthdate)
|
||||
err := h.Services.MobilityAccounts.UpdateAccountBirthDate(ctx, id, "parcoursmob_beneficiaries", birthdate)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package handler
|
||||
import "context"
|
||||
|
||||
func (h *SilvermobiHandler) UpdatePassword(ctx context.Context, username string, password string) (response bool) {
|
||||
account, err := h.Services.MobilityAccounts.GetAccountUsername(ctx, username, "silvermobi")
|
||||
account, err := h.Services.MobilityAccounts.GetAccountUsername(ctx, username, "parcoursmob_beneficiaries")
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user