diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-07-02 00:02:22 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-07-02 00:02:22 +0200 |
commit | 99ff8f0ebae37069de690936f79c4d599851f952 (patch) | |
tree | 06d33db20cdd065e74334fef20096806a5b4f5d9 /lockchain-server/src | |
parent | d99d8bb4d9fb695f15256a8fe9a85136959e556b (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.rs | 7 |
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(); } |