﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / Old Forums / InstantForum.NET 4.x / Suggestions &amp; Requests  / Blank Username Protection / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 09 Jan 2009 03:43:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>This is a good idea.  A random username would solve the problem and force the user to pick a better name :)&lt;P&gt;Thanks for the code sample.  I am already using a similar method to generate passwords with the following code in InstantASP.Common\InstantASP.Common\Components\User.vb:&lt;/P&gt;&lt;P&gt;[quote]&lt;FONT face="Courier New"&gt;&lt;FONT color=#ff0000&gt;Public&lt;/FONT&gt; &lt;FONT color=#ff0000&gt;Function&lt;/FONT&gt; GenerateAndSetNewPassword() &lt;FONT color=#ff0000&gt;As&lt;/FONT&gt; &lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#ff0000&gt;String&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;    Dim&lt;/FONT&gt; sPassword &lt;FONT color=#ff0000&gt;As&lt;/FONT&gt; &lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#ff0000&gt;String&lt;BR&gt;    &lt;/FONT&gt;sPassword = InstantASP.Common.Text.Generators.RandomAlphaNumeric(&lt;FONT color=#0000ff&gt;8&lt;/FONT&gt;, &lt;/FONT&gt;&lt;FONT face="Courier New" color=#ff0000&gt;True)&lt;BR&gt;    &lt;/FONT&gt;&lt;FONT face="Courier New"&gt;SetPassword(sPassword)&lt;BR&gt;    &lt;FONT color=#ff0000&gt;Return&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; sPassword&lt;BR&gt;&lt;FONT color=#ff0000&gt;End&lt;/FONT&gt; &lt;FONT color=#ff0000&gt;Function&lt;/FONT&gt;&lt;/FONT&gt;[/quote]</description><pubDate>Sat, 24 Sep 2005 10:29:04 GMT</pubDate><dc:creator>DanMorin</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>Why not generate a random username, there are .net tools out there to help.&lt;P&gt;&lt;a target="_blank" href="http://aspalliance.com/703" target=_blank&gt;http://aspalliance.com/703&lt;/A&gt; &amp;lt;-- random passphrase generation&lt;/P&gt;&lt;P&gt;[hr]&lt;/P&gt;&lt;P&gt;I found this function for random strings&lt;/P&gt;&lt;P&gt;[code]&lt;BR&gt;Private Function RandomStringGenerator(ByVal intLen As Integer) As String&lt;BR&gt;        Dim r As New Random&lt;BR&gt;        Dim i As Integer&lt;BR&gt;        Dim strTemp As String&lt;BR&gt;        For i = 0 To intLen&lt;BR&gt;            strTemp = strTemp &amp;amp; Chr(Int((26 * r.NextDouble()) + 65))&lt;BR&gt;        Next&lt;BR&gt;        Return strTemp&lt;BR&gt;    End Function&lt;BR&gt;[/code]</description><pubDate>Sat, 24 Sep 2005 10:02:42 GMT</pubDate><dc:creator>Mark Christianson</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>[quote][b]AL (aholics.com) (9/23/2005)[/b][hr]Of course, this would publicize an email address...but not in such a way that bots would recognize it.  Regardless, you need to be careful with privacy issues regarding the creation of a name in this manner.[/quote]&lt;P&gt;I don't want to display the email address because of privacy and spam.  I am thinking of displaying the email if the username is empty for the Administrator (myself). This way, I will be able to contact those individuals if needed.</description><pubDate>Fri, 23 Sep 2005 18:16:33 GMT</pubDate><dc:creator>DanMorin</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>Something like the following would assure unique usernames:&lt;/P&gt;&lt;P&gt;EMAIL:&lt;BR&gt;&lt;a target="_blank" href="mailto:name@domain.com"&gt;name@domain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;USERNAME:&lt;BR&gt;DomainCom-Name&lt;/P&gt;&lt;P&gt;Of course, this would publicize an email address...but not in such a way that bots would recognize it.  Regardless, you need to be careful with privacy issues regarding the creation of a name in this manner.  &lt;/P&gt;&lt;P&gt;Or, you could just do something like this:&lt;/P&gt;&lt;P&gt;USERNAME:&lt;BR&gt;Name###&lt;/P&gt;&lt;P&gt;Where ### is a sequential number starting with 1.  If Name1 exists, try Name2.  If Name2 exists, try Name3, etc...</description><pubDate>Fri, 23 Sep 2005 10:52:15 GMT</pubDate><dc:creator>AL (aholics.com)</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>Then why not just park anything in there (random) or just use thier email or some other bit of information you have from them.</description><pubDate>Fri, 23 Sep 2005 09:28:33 GMT</pubDate><dc:creator>Mark Christianson</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>[quote][b]Bare (9/22/2005)[/b][hr]I thought the 'username' was a required field upon registration in InstantForum v4.0? If so, how can you have registered members with no username field entry?[/quote]&lt;/P&gt;&lt;P&gt;You are right.  The problem is the user is &lt;STRONG&gt;automatically&lt;/STRONG&gt; registered via the IF API when requesting an evaluation key for my product.  The automatic registration leaves the username blank so the user can pick his/her own.  Also, most of the registered users will never post to the forum, so they don't need a username.</description><pubDate>Thu, 22 Sep 2005 23:14:17 GMT</pubDate><dc:creator>DanMorin</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>I cant think of any good reason that you'd even ALLOW it IF you are NOT required to enter that field (which I agree with Bare is required).&lt;/P&gt;&lt;P&gt;Seems like you're trying to implement a code solution for a USER problem.</description><pubDate>Thu, 22 Sep 2005 10:36:50 GMT</pubDate><dc:creator>Mark Christianson</dc:creator></item><item><title>RE: Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>I thought the 'username' was a required field upon registration in InstantForum v4.0?  If so, how can you have registered members with no username field entry?&lt;br&gt;&lt;br&gt;I must not be understanding...&lt;br&gt;&lt;br&gt;It's more a question for InstantASP anyway, but I'm just curious...  ;)</description><pubDate>Thu, 22 Sep 2005 10:26:47 GMT</pubDate><dc:creator>Bare</dc:creator></item><item><title>Blank Username Protection</title><link>http://community.instantasp.co.uk/Topic8591-51-1.aspx</link><description>The InstantForum does not work well if a blank username is present.  I am not asking to re-write the forum logic, but to generate a username if empty when the user logins by email.  I think this will be a great feature for third party components to fully use the forum.&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Each customer can request a 30-day evaluation key for my product.  The key is sent by email.  I use the forum database to keep those emails, however I do not create a username because 99% of them will never post to the forum.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problems Associated With a Blank Username&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is now a problem because many users do write private messages while their username is still undefined.  With a blank username, it is &lt;U&gt;impossible&lt;/U&gt; to communicate back to those users.  Another annoying thing is the impossibility to view the user's profile if the username is blank.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am thinking of modifying the code to generate a username when the customer logins by email.  If you have any suggestions to do this, please let me know.  Let me know if you consider to implement this feature, so I won't have to do it.&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Thu, 22 Sep 2005 09:43:59 GMT</pubDate><dc:creator>DanMorin</dc:creator></item></channel></rss>