Using email id as Node name | Community
Skip to main content
Level 3
May 17, 2021
Solved

Using email id as Node name

  • May 17, 2021
  • 3 replies
  • 1690 views

Hi,

 

I have a form to grab email id and other info for registration and saving as nodes.

 

I just want an advice on how right or safe to use email id as Node name.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @hptarora 

If your application requires any specific logic to create node based on certain name you can use that else you can generate node name using UUID:

UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString();

 

Now all the form values can be stored as a node property in the node so it will be something like below:

 

Thanks! 

3 replies

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
May 17, 2021

Hi @hptarora 

If your application requires any specific logic to create node based on certain name you can use that else you can generate node name using UUID:

UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString();

 

Now all the form values can be stored as a node property in the node so it will be something like below:

 

Thanks! 

hptaroraAuthor
Level 3
May 17, 2021
How long node name can be ?
arunpatidar
Community Advisor
Community Advisor
May 17, 2021

Hi,

you can encode an email to get a unique node name and use that as a node name.

https://www.base64encode.org/ 

Arun Patidar
Varun_Shakya
Community Advisor
Community Advisor
May 17, 2021