From 55b4f7aa2ada2d351ab3b2352531211bdd12daf5 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Wed, 30 Nov 2016 00:32:53 -0800 Subject: [PATCH] add some TODOs --- ttadmin/users/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ttadmin/users/forms.py b/ttadmin/users/forms.py index be11fe3..2a632b4 100644 --- a/ttadmin/users/forms.py +++ b/ttadmin/users/forms.py @@ -25,6 +25,8 @@ NOT_A_ROBOT = 'four' # <_< def validate_username(username): + # TODO actually check for existence of user on the current system with + # username if len(username) < USERNAME_MIN_LENGTH: raise ValidationError('Username too short.') if not USERNAME_RE.match(username): @@ -37,6 +39,7 @@ def validate_displayname(display_name): raise ValidationError("Valid characters: a-z, A-Z, 0-9, -, _, and '.") def validate_pubkey(pubkey): + # TODO see if I can get the type out key = ssh.SSHKey(pubkey, strict_mode=False, skip_option_parsing=True) try: key.parse()