summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_user.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-11-10 14:04:33 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-11-10 14:04:33 +0100
commit85e60ada1558798669b29225aa530b4ba9310cdc (patch)
tree55bb42e7f13552df60c4b5de0bfda9097032103f /program/lib/Roundcube/rcube_user.php
parente46d060a4ab4b2a901c3dd4a3909490a547284e1 (diff)
First version of the local storage compose data saving feature; some behavioral improvements and encrytion are still to be added
Diffstat (limited to 'program/lib/Roundcube/rcube_user.php')
-rw-r--r--program/lib/Roundcube/rcube_user.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_user.php b/program/lib/Roundcube/rcube_user.php
index 57f63361d..3e4be0ab9 100644
--- a/program/lib/Roundcube/rcube_user.php
+++ b/program/lib/Roundcube/rcube_user.php
@@ -221,6 +221,14 @@ class rcube_user
return false;
}
+ /**
+ * Generate a unique hash to identify this user which
+ */
+ function get_hash()
+ {
+ $key = substr($this->rc->config->get('des_key'), 1, 4);
+ return md5($this->data['user_id'] . $key . $this->data['username'] . '@' . $this->data['mail_host']);
+ }
/**
* Get default identity of this user