API Subsonic: Adding playlist support
This commit is contained in:
@@ -180,10 +180,21 @@ Handler::getUser(const Wt::Auth::User& authUser)
|
||||
return authInfo->user();
|
||||
}
|
||||
|
||||
User::pointer
|
||||
Handler::getUser(const std::string& loginName)
|
||||
{
|
||||
auto authUser {getUserDatabase().findWithIdentity(Wt::Auth::Identity::LoginName, loginName)};
|
||||
if (!authUser.isValid())
|
||||
return User::pointer {};
|
||||
|
||||
return getUser(authUser);
|
||||
}
|
||||
|
||||
User::pointer
|
||||
Handler::createUser(const Wt::Auth::User& authUser)
|
||||
{
|
||||
if (!authUser.isValid()) {
|
||||
if (!authUser.isValid())
|
||||
{
|
||||
LMS_LOG(DB, ERROR) << "Handler::getUser: invalid authUser";
|
||||
return User::pointer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user