dddp/accounts/ddp.py
def reset_password(self, token, new_password):
        """Reset password using a token received in email then logs user in."""
        user = self.validated_user(
            token, purpose=HashPurpose.PASSWORD_RESET,
            minutes_valid=HASH_MINUTES_VALID[HashPurpose.PASSWORD_RESET],
        )
        user.set_password(new_password)
        user.save()
        self.do_login(user)
        return {"userId": this.user_ddp_id}
def reset_password(self, token, new_password):
        user = self.validated_user(
            token, purpose=HashPurpose.PASSWORD_RESET,
            minutes_valid=HASH_MINUTES_VALID[HashPurpose.PASSWORD_RESET],
        )
        user.set_password(new_password)
        user.save()
        self.do_login(user)
        return {"userId": this.user_ddp_id}
def reset_password ( self , token , new_password ) : user = self . validated_user ( token , purpose = HashPurpose . PASSWORD_RESET , minutes_valid = HASH_MINUTES_VALID [ HashPurpose . PASSWORD_RESET ] , ) user . set_password ( new_password ) user . save ( ) self . do_login ( user ) return { "userId" : this . user_ddp_id }
Reset password using a token received in email then logs user in.
Reset password using a token received in email then logs user in .