Get client_id test
FossilOrigin-Name: f0e835af04dda630075d6da18bbd222802c6500fcf34ecdcbb4bf68e6c3a1674
This commit is contained in:
parent
3b2b350f10
commit
26eb79c4e1
1 changed files with 11 additions and 2 deletions
13
src/login.c
13
src/login.c
|
@ -27,10 +27,19 @@
|
|||
|
||||
void content_login(mastodont_t* api, char** data, size_t data_size)
|
||||
{
|
||||
|
||||
struct mstdnt_storage storage;
|
||||
struct mstdnt_app app;
|
||||
struct mstdnt_app_register_args args = {
|
||||
.client_name = "RatFE",
|
||||
.redirect_uris = "http://localhost/",
|
||||
.scopes = "read+write",
|
||||
.website = NULL
|
||||
};
|
||||
mastodont_register_app(api, &args, &storage, &app);
|
||||
|
||||
struct base_page b = {
|
||||
.locale = L10N_EN_US,
|
||||
.content = data_login_html,
|
||||
.content = app.client_id,
|
||||
.sidebar_right = NULL
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue