added 'remote_password' property to User model
diff --git a/planetstack/core/models/user.py b/planetstack/core/models/user.py
index b30e897..fb0d232 100644
--- a/planetstack/core/models/user.py
+++ b/planetstack/core/models/user.py
@@ -1,6 +1,7 @@
import os
import datetime
import sys
+import hashlib
from collections import defaultdict
from django.forms.models import model_to_dict
from django.db import models
@@ -113,6 +114,10 @@
return self.diff.get(field_name, None)
# ---- end copy stuff from DiffModelMixin ----
+ @property
+ def remote_password(self):
+ return hashlib.md5(self.password).hexdigest()[:12]
+
class Meta:
app_label = "core"