@@ -0,0 +1,536 @@
+from django import forms%0A%0Aclass LoginForm(forms.Form):%0A    username = forms.CharField(label='Username: ', max_length=24)%0A    password = forms.CharField(label='Password: ', max_length=100)%0A%0A    def is_valid(self):%0A        valid = super(LoginForm, self).is_valid()%0A        if not valid:%0A            return False%0A%0A        pw = self.cleaned_data%5B'password'%5D%0A        result1 = len(pw) %3E= 6%0A        result2 = False%0A        try:%0A            pw = int(pw)%0A        except ValueError:%0A            result2 = True%0A        return result1 and result2%0A

add file