Start a new topic
Answered

emailVerify doesn't work

Hello everyone!!

I'm developping an App on NodeJS, I tried to add email verification option to my App but it shows the error "user.emailVerify is not a function".
Here is the code :

mail_verification:function(){
      var userData = JSON.parse($window.localStorage.getItem('newUser'));
      //var activeUser = $kinvey.User.getActiveUser();
      var user = new $kinvey.User(userData);
      user.verifyEmail().then(function(response) {
            
              }).catch(function(error) {

              });
    },



Best Answer
Braiek,

Glad it is working for you. Thanks for the update.

Thanks,
Pranav


 


Hello,
I made the "Email" column and I tried but I didn't receive the confirmation Email. Here is my code:

 

signup: function (data) {
      var user = $kinvey.User.signup({
        firstname:data.firstname,
        lastname:data.lastname,
        companyname:data.companyname,
        position:data.position,
        username: data.username,
        password: data.password,
        Email:data.username
      })
      $kinvey.User.verifyEmail(data.username);
      return user;
    }

 

no it's "user.verifyEmail is not a function" 
it was a typing error 

Login or Signup to post a comment