Rename Result.result to Result.value() to match c#
This commit is contained in:
1 parent
3bbef9f328
commit
f4ee9434cc
8 files changed
+37
-37
No files matched your search
@@ -39,7 +39,7 @@ void AuthServiceServer::get_users(const api::user::GetUsersRequest& ,
|
||||
me->admin.get_admin_data(vod, [respond](const api::Result<bts::api::admin::AdminData>& admin_data) {
|
||||
api::user::GetUsersResponse resp;
|
||||
if (admin_data.success()) {
|
||||
for (const auto& inuser : admin_data.result()->users()) {
|
||||
for (const auto& inuser : admin_data.value()->users()) {
|
||||
if (inuser.is_present()) {
|
||||
api::user::User& outuser = *resp.add_users();
|
||||
outuser.set_login(inuser.name());
|
||||
@@ -61,7 +61,7 @@ void AuthServiceServer::authenticate_login(const api::user::AuthenticateLoginReq
|
||||
api::user::AuthenticateLoginResponse resp;
|
||||
resp.set_is_valid(false);
|
||||
if (admin_data.success()) {
|
||||
for (const auto& user : admin_data.result()->users()) {
|
||||
for (const auto& user : admin_data.value()->users()) {
|
||||
if (user.name() == req.login() && user.password() == req.password() && user.is_present()) {
|
||||
resp.set_is_valid(user.is_active());
|
||||
if(!resp.is_valid())
|
||||
|
||||
Reference in new issue
Block a user