User registration - Mail not valid

0 votes
Hi! A user reported me an issue while registering to my application, and I've discovered that his mail throws exception as not valid because it has only 2 digits before the @.

Is this working as intended? I know it's a pretty rare case, but he can't be forced to change his facebook mail for it.

Thanks
asked Nov 27, 2014 in App42 Cloud API-BaaS by service (10 points)

1 Answer

0 votes

Hello,

We have followed the general Regex to check the email pattern. We believe it will work for the case which you have shared. Can you please share the Platform & SDK version in which you are working on, so that we can check & provide better support to you. image

Thanks,

Himanshu Sharma

answered Nov 27, 2014 by hs00105 (2,005 points)
I'm using it in customcode, with the app42 java SDK 2.4.1
I've got the "Email is not valid" error also if I try to create the user from the apphq console!

Here the example: http://snag.gy/FHhu8.jpg
Looks like a valid use case. We will give you a workaround to do that in next 24 hours.
thanks a lot!
Please  download the java source file from below link.   
http://cdn.shephertz.com/repository/files/7a6b25fc1d82dc1e1d614466a1c549a6e24f4a6b9c32fbded52c0ea224b9cbc4/5d32ee172def2b0036ed6bc513421b699e8aee97/App42UserService.java
 
Deploy this file along with your jar file and call registerUser instead of createUser as shown below.

 
App42UserService create = new App42UserService("API_KEY","SECRET_KEY");
String user = create.registerUser("UserName", "Password", "EmailId");

Let us know if it helps.
Himanshu Sharma
I hope your query has been resolved. Let us know if you need further assistance regarding this.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...