Start a new topic
Answered

issues for custom user 'email' attribute

Hi, i am trying to create a custom user. I have implemented step by step using http://devcenter.kinvey.com/ios/guides/users#UserClass. I am still getting 3 issues. I want to include 'email' in my custom user definition as it's an optional field but I get 'cannot override with a stored property 'email''.plz take a look at screenshot attached. thanks in advance


image



Best Answer

Pratap,


'email' is an existing property of 'User' class. You shouldn't include it while creating a custom user. You can directly access it like other properties like 'username'.


Thanks,

Pranav

Kinvey Support


Pratap, You're welcome!

 

pranav, this will help. Thanks. You’re so helpful!

Pratap,

For your use case, you can achieve it by enabling 'Enforce email verification' option on the console-> Users -> Settings panel. When this option is enabled, you will not be able to create a new user that does not have an email address.

For more information, please refer following link:
http://devcenter.kinvey.com/ios/guides/users#emailverification

Thanks,

Pranav

Kinvey

okay Pranav! thanks for your answer. so email is existing property of user class. How to make it compulsory during sign up process as per my app design?

Answer

Pratap,


'email' is an existing property of 'User' class. You shouldn't include it while creating a custom user. You can directly access it like other properties like 'username'.


Thanks,

Pranav

Kinvey Support

Thanks Pranav

Pratap,

I have started looking into it. Will get back to you asap.

Thanks,
Pranav
Kinvey
Login or Signup to post a comment