From 85e60ada1558798669b29225aa530b4ba9310cdc Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sun, 10 Nov 2013 14:04:33 +0100 Subject: First version of the local storage compose data saving feature; some behavioral improvements and encrytion are still to be added --- program/lib/Roundcube/rcube_user.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'program/lib/Roundcube/rcube_user.php') 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 -- cgit v1.2.3