Closed iSplasher closed 4 years ago
I guess the problem is related to the isVerified
you added on find/get operations. This hook should only be used to check if the user is verified before performing some specific operation in your app like changing security settings when you need to be sure the user can be contacted by email or SMS for instance because you will send him a verification code or an alert.
Adding it to get/find operations will cause any service call made on behalf of the user fail until he his not verified. As a consequence when the module performs a find with the verification token it will fail and the verify operation will stop without updating the user. This should work if you remove the hook.
Yes, that was it! Can't believe i missed that. Thanks
Hello, I just set up the auth management following the docs. The user service is being served at
/s/users
. The authentication at/s/auth
. The authManagement at/s/auth/management
. I also tried/s/authMgmt
with no luck. I have created a user, and all fields are being added successfully. But whenever I try to verify the user, for example, with a POST request:I get this back:
I have checked and I really can't understand why. Here's how I initialize the service:
Here's my hooks for the users service:
Any help is appreciated!