migrated passwords from blob to strings (still hashed), for easier migration between...
[quassel.git] / src / core / storage.h
index 2c975ca..3e8cbb1 100644 (file)
@@ -252,8 +252,11 @@ class Storage : public QObject {
     //! Sent when a user has been removed
     void userRemoved(UserId);
 
-  public:
-
+  protected:
+    //! when implementing a storage handler, use this method to crypt user passwords.
+    /**  This guarantees compatibility with other storage handlers and allows easy migration
+     */
+    QString cryptedPassword(const QString &password);
 };