summaryrefslogtreecommitdiffstats
path: root/server/src/api/user.rs
diff options
context:
space:
mode:
authorFelix <me@nutomic.com>2020-03-26 15:23:15 +0100
committerFelix <me@nutomic.com>2020-03-29 00:13:13 +0100
commit76bf71162ef187d2d363b29faa40d24fecdfba3b (patch)
tree3782f744f8bf81342f7863b4d0d03e029c0270ea /server/src/api/user.rs
parent807f33f74823b427bbac5e48caf29e805ce4e656 (diff)
Automatic instance setup based on config variables (fixes #404)
Diffstat (limited to 'server/src/api/user.rs')
-rw-r--r--server/src/api/user.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/api/user.rs b/server/src/api/user.rs
index 333fd949..056a2a84 100644
--- a/server/src/api/user.rs
+++ b/server/src/api/user.rs
@@ -14,12 +14,12 @@ pub struct Login {
#[derive(Serialize, Deserialize)]
pub struct Register {
- username: String,
- email: Option<String>,
- password: String,
- password_verify: String,
- admin: bool,
- show_nsfw: bool,
+ pub username: String,
+ pub email: Option<String>,
+ pub password: String,
+ pub password_verify: String,
+ pub admin: bool,
+ pub show_nsfw: bool,
}
#[derive(Serialize, Deserialize)]
@@ -42,7 +42,7 @@ pub struct SaveUserSettings {
#[derive(Serialize, Deserialize)]
pub struct LoginResponse {
- jwt: String,
+ pub jwt: String,
}
#[derive(Serialize, Deserialize)]