diff --git a/kallithea/controllers/admin/users.py b/kallithea/controllers/admin/users.py --- a/kallithea/controllers/admin/users.py +++ b/kallithea/controllers/admin/users.py @@ -122,6 +122,7 @@ class UsersController(BaseController): """POST /users: Create a new item""" # url('users') c.default_extern_type = auth_modules.auth_internal.KallitheaAuthPlugin.name + c.default_extern_name = auth_modules.auth_internal.KallitheaAuthPlugin.name user_model = UserModel() user_form = UserForm()() try: @@ -153,6 +154,7 @@ class UsersController(BaseController): """GET /users/new: Form to create a new item""" # url('new_user') c.default_extern_type = auth_modules.auth_internal.KallitheaAuthPlugin.name + c.default_extern_name = auth_modules.auth_internal.KallitheaAuthPlugin.name return render('admin/users/user_add.html') def update(self, id): diff --git a/kallithea/model/forms.py b/kallithea/model/forms.py --- a/kallithea/model/forms.py +++ b/kallithea/model/forms.py @@ -120,8 +120,8 @@ def UserForm(edit=False, old_data={}): firstname = v.UnicodeString(strip=True, min=1, not_empty=False) lastname = v.UnicodeString(strip=True, min=1, not_empty=False) email = All(v.Email(not_empty=True), v.UniqSystemEmail(old_data)) - extern_name = v.UnicodeString(strip=True) - extern_type = v.UnicodeString(strip=True) + extern_name = v.UnicodeString(strip=True, if_missing=None) + extern_type = v.UnicodeString(strip=True, if_missing=None) return _UserForm diff --git a/kallithea/templates/admin/my_account/my_account_profile.html b/kallithea/templates/admin/my_account/my_account_profile.html --- a/kallithea/templates/admin/my_account/my_account_profile.html +++ b/kallithea/templates/admin/my_account/my_account_profile.html @@ -33,8 +33,6 @@ ${h.form(url('my_account'), method='post