From 19707f5b863da60a318742f74ad4473ed0b09f00 Mon Sep 17 00:00:00 2001 From: Jerry McRae Date: Fri, 16 Jan 2015 16:54:29 -0800 Subject: [PATCH 1/4] read from users username first, then profile.name. Write changes to username. --- client/accounts_admin.html | 10 ++- client/info_account_modal.html | 10 ++- client/info_account_modal.js | 13 +-- client/update_account_modal.html | 54 ++++++------- client/update_account_modal.js | 2 +- libs/user_query.js | 1 + package.js | 5 +- server/methods.js | 6 +- versions.json | 132 +++++++++++++++++++++---------- 9 files changed, 147 insertions(+), 86 deletions(-) diff --git a/client/accounts_admin.html b/client/accounts_admin.html index 3366e03..c2a93c4 100644 --- a/client/accounts_admin.html +++ b/client/accounts_admin.html @@ -30,10 +30,14 @@ {{/unless}}
| From 0ce4f3665d772544edde140443c9014db14698a0 Mon Sep 17 00:00:00 2001 From: Jerry McRae Date: Wed, 21 Jan 2015 16:37:42 -0800 Subject: [PATCH 3/4] verify username is unique if changed; better error message display for field change. --- client/update_account_modal.html | 2 +- client/update_account_modal.js | 6 ++++-- server/methods.js | 9 ++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/client/update_account_modal.html b/client/update_account_modal.html index 4ce51da..ab6657c 100644 --- a/client/update_account_modal.html +++ b/client/update_account_modal.html @@ -11,7 +11,7 @@ {{#with userInScope}} | ||||||||
|---|---|---|---|---|---|---|---|---|
| + | Username | Name | Roles | @@ -43,6 +44,14 @@+ {{#if profile.name}} + {{profile.name}} + {{else}} + {{username}} + {{/if}} + + | {{email}} | {{roles}} |