mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #768, authentication component improved
* access to user object * show database name in UI * init UI with user object at startup
This commit is contained in:
@@ -50,6 +50,17 @@ namespace BlackCore
|
||||
this->logoff();
|
||||
}
|
||||
|
||||
CAuthenticatedUser CDatabaseAuthenticationService::getDbUser() const
|
||||
{
|
||||
return this->m_swiftDbUser.get();
|
||||
}
|
||||
|
||||
bool CDatabaseAuthenticationService::isUserAuthenticated() const
|
||||
{
|
||||
const CAuthenticatedUser user(this->getDbUser());
|
||||
return user.isAuthenticated();
|
||||
}
|
||||
|
||||
CStatusMessageList CDatabaseAuthenticationService::login(const QString &username, const QString &password)
|
||||
{
|
||||
CStatusMessageList msgs;
|
||||
|
||||
Reference in New Issue
Block a user