I am writing an Android app where the user authenticates to a B4J server using UserName, Password.
1) Should I allow the user to create any user name he likes?
2)Or should the server reject any user name with swear words in it?
If #2, then I will need to write a sub to search for these swear words. Since I'm already using a database I thought I would create a record with a memo field to store all swear words. Then when the user registers the user name, the B4J server would parse out these swear words and see if they are in the UserName. If it is, then it would examine the adjacent characters to determine if the word is by itself. If it is, then the UserName is rejected and the user is forced to enter a different UserName.
I'm wondering if this is the best way to handle it. Or am I worrying about nothing?
TIA
1) Should I allow the user to create any user name he likes?
2)Or should the server reject any user name with swear words in it?
If #2, then I will need to write a sub to search for these swear words. Since I'm already using a database I thought I would create a record with a memo field to store all swear words. Then when the user registers the user name, the B4J server would parse out these swear words and see if they are in the UserName. If it is, then it would examine the adjacent characters to determine if the word is by itself. If it is, then the UserName is rejected and the user is forced to enter a different UserName.
I'm wondering if this is the best way to handle it. Or am I worrying about nothing?
TIA