@@ -202,19 +202,6 @@ func (controller *UserCommandController) UpdateUserByWalletAddress(w http.Respon
202
202
return
203
203
}
204
204
205
- // FIXME: remove this temporary code for allowing demo exploration
206
- if walletAddress == "0xd78F31c1181a305C1Afa5F542fFBE7bda97D5C05" {
207
- response := viewmodels.HTTPResponseVM {
208
- Status : http .StatusUnauthorized ,
209
- Success : false ,
210
- Message : "For demo purposes only. Contact support to explore the full features." ,
211
- ErrorCode : apiError .UnauthorizedAccess ,
212
- }
213
-
214
- response .JSON (w )
215
- return
216
- }
217
-
218
205
var request types.UpdateUserRequest
219
206
220
207
if err := json .NewDecoder (r .Body ).Decode (& request ); err != nil {
@@ -308,19 +295,6 @@ func (controller *UserCommandController) UpdateUserPassword(w http.ResponseWrite
308
295
return
309
296
}
310
297
311
- // FIXME: remove this temporary code for allowing demo exploration
312
- if walletAddress == "0xd78F31c1181a305C1Afa5F542fFBE7bda97D5C05" {
313
- response := viewmodels.HTTPResponseVM {
314
- Status : http .StatusUnauthorized ,
315
- Success : false ,
316
- Message : "For demo purposes only. Contact support to explore the full features." ,
317
- ErrorCode : apiError .UnauthorizedAccess ,
318
- }
319
-
320
- response .JSON (w )
321
- return
322
- }
323
-
324
298
var request types.UpdateUserPasswordRequest
325
299
326
300
if err := json .NewDecoder (r .Body ).Decode (& request ); err != nil {
@@ -363,9 +337,8 @@ func (controller *UserCommandController) UpdateUserPassword(w http.ResponseWrite
363
337
}
364
338
365
339
err = controller .UserCommandServiceInterface .UpdateUserPassword (context .TODO (), serviceTypes.UpdateUserPassword {
366
- WalletAddress : walletAddress ,
367
- CurrentPassword : request .CurrentPassword ,
368
- NewPassword : request .NewPassword ,
340
+ WalletAddress : walletAddress ,
341
+ Password : request .Password ,
369
342
})
370
343
if err != nil {
371
344
var httpCode int
0 commit comments