Implemented application login.
Minor UI improvement. Fixed memory leaks.
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
#define PERMISSIONSERVICE_H
|
||||
|
||||
#include "service.h"
|
||||
#include "permission.h"
|
||||
#include "core-odb.hxx"
|
||||
#include "data/core-data.h"
|
||||
#include "core_global.h"
|
||||
#include <odb/core.hxx>
|
||||
#include <odb/database.hxx>
|
||||
@@ -14,9 +13,6 @@
|
||||
#include <QSharedPointer>
|
||||
#include <QString>
|
||||
|
||||
typedef odb::query<Permission> permQuery;
|
||||
typedef odb::result<Permission> permResult;
|
||||
|
||||
class CORESHARED_EXPORT PermissionService : public Service<Permission>
|
||||
{
|
||||
public:
|
||||
@@ -25,6 +21,10 @@ public:
|
||||
|
||||
QList<QSharedPointer<Permission> > forPlugin(const QString &pluginId);
|
||||
QSharedPointer<Permission> forNameAndPlugin(const QString &name, const QString &pluginId);
|
||||
bool checkLogin(const QString &login, const QString &password);
|
||||
QSharedPointer<User> loadUser(const QString &login);
|
||||
void checkForAdmin();
|
||||
QString encryptPassword(const QString &plainPasswd);
|
||||
};
|
||||
|
||||
#endif // PERMISSIONSERVICE_H
|
||||
|
||||
Reference in New Issue
Block a user