The login_api class implements the bottom layer of the RPC API.
More...
#include <api.hpp>
The login_api class implements the bottom layer of the RPC API.
All other APIs must be requested from this API.
Definition at line 201 of file api.hpp.
◆ login_api()
scorum::app::login_api::login_api |
( |
const api_context & |
ctx | ) |
|
◆ ~login_api()
scorum::app::login_api::~login_api |
( |
| ) |
|
|
virtual |
◆ get_api_by_name()
fc::api_ptr scorum::app::login_api::get_api_by_name |
( |
const std::string & |
api_name | ) |
const |
◆ get_version()
◆ login()
bool scorum::app::login_api::login |
( |
const std::string & |
user, |
|
|
const std::string & |
password |
|
) |
| |
Authenticate to the RPC server.
- Parameters
-
user | Username to login with |
password | Password to login with |
- Returns
- True if logged in successfully; false otherwise
- Note
- This must be called prior to requesting other APIs. Other APIs may not be accessible until the client has sucessfully authenticated.
Definition at line 63 of file api.cpp.
◆ on_api_startup()
void scorum::app::login_api::on_api_startup |
( |
| ) |
|
internal method, not exposed via JSON RPC
Definition at line 59 of file api.cpp.
The documentation for this class was generated from the following files: