-
-
-
-
+
+
-
+
+
+
+
+
+
+
diff --git a/media/js/src/modules/partials/profile.html b/media/js/src/modules/partials/profile.html
index d5f0f4e..2d48a90 100644
--- a/media/js/src/modules/partials/profile.html
+++ b/media/js/src/modules/partials/profile.html
@@ -4,9 +4,12 @@
[[ user.user_id ]]
+
+ [[ user.id ]]
+
[[ user.email ]]
- fdsaf809ds7a89gd7sa89g7ds09a7g0d9s8a
+ [[ user.api_key ]]
diff --git a/snipts/api.py b/snipts/api.py
index b5210b3..c481578 100644
--- a/snipts/api.py
+++ b/snipts/api.py
@@ -38,8 +38,8 @@ class UserProfileValidation(Validation):
errors = {}
for field in bundle.data:
- if not re.match('^[ A-Za-z0-9\._-]*$', bundle.data[field]):
- errors[field] = 'Only spaces, letters, numbers, underscores, dashes, and periods are valid.'
+ if not re.match('^[ A-Za-z0-9\/\@\._-]*$', bundle.data[field]):
+ errors[field] = 'Only spaces, letters, numbers, underscores, dashes, periods, forward slashes, and "at sign" are valid.'
return errors
@@ -141,7 +141,6 @@ class PrivateUserProfileResource(ModelResource):
authorization = Authorization()
always_return_data = True
max_limit = 200
- cache = SimpleCache()
def apply_authorization_limits(self, request, object_list):
return object_list.filter(user=request.user)