Disallow realname = username in GUI

This commit is contained in:
Michael Spang 2009-08-06 01:41:02 -04:00
parent e6e673447e
commit 4ee16577aa
1 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,10 @@ class InfoPage(WizardPanel):
self.focus_widget( self.name )
set_status("Name is too short")
return True
elif self.state['userid'] == self.state['name']:
self.focus_widget(self.name)
set_status("Name matches username")
return True
clear_status()
class ClubInfoPage(WizardPanel):
@ -97,6 +101,10 @@ class ClubInfoPage(WizardPanel):
self.focus_widget( self.name )
set_status("Name is too short")
return True
elif self.state['userid'] == self.state['name']:
self.focus_widget(self.name)
set_status("Name matches username")
return True
clear_status()
class SignPage(WizardPanel):