aboutsummaryrefslogtreecommitdiff
path: root/lockchain-server/src
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-07-02 00:02:22 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-07-02 00:02:22 +0200
commit99ff8f0ebae37069de690936f79c4d599851f952 (patch)
tree06d33db20cdd065e74334fef20096806a5b4f5d9 /lockchain-server/src
parentd99d8bb4d9fb695f15256a8fe9a85136959e556b (diff)
Big code change & refactoring commit
Move `token` into user module for lockchain-core. Start work on a PAM authentication module which replaces the second layer UserStore in API layer state (http being the only one for now). This brings the `nix` and `pam-auth` dependencies, which unfortunately currently don't work :(
Diffstat (limited to 'lockchain-server/src')
-rw-r--r--lockchain-server/src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/lockchain-server/src/main.rs b/lockchain-server/src/main.rs
index 8d3f3fd..1e4840f 100644
--- a/lockchain-server/src/main.rs
+++ b/lockchain-server/src/main.rs
@@ -14,11 +14,12 @@ fn main() {
let state = ApiState::<EncryptedBody, DataVault<EncryptedBody>> {
bound_scope: true,
working_dir: ".".into(),
+
+ // This is a dangerous option
+ administrative: true,
..Default::default()
};
let server = create_server("localhost", "9999", state);
- server.run();
-
- // println!("After the server died!");
+ server.unwrap().run();
}