From 7d80f35b1cb18043c926d81c5f9a427fe8d424ca Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 31 2014 11:52:02 +0000 Subject: Add a form to update the user's public ssh key Signed-off-by: Pierre-Yves Chibon --- diff --git a/progit/forms.py b/progit/forms.py index 80cc353..dd089ad 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -108,3 +108,11 @@ class ProjectSettingsForm(wtf.Form): if 'project' in kwargs: self.issue_tracker.data = kwargs['project'].issue_tracker self.project_docs.data = kwargs['project'].project_docs + + +class UserSettingsForm(wtf.Form): + ''' Form to create or edit project. ''' + ssh_key = wtforms.TextAreaField( + 'Public ssh key *', + [wtforms.validators.Required()] + )