password hashes should stop appearing in logs
This commit is contained in:
parent
a4d5982e3c
commit
dbffd4dbeb
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ links.db
|
||||
launch.json
|
||||
settings.json
|
||||
links.session.sql
|
||||
sqltemplates
|
@ -2,6 +2,8 @@
|
||||
|
||||
The target audience of this tool are small entities that need a url shortener. The shortened urls can be publicly resolved but only registered users can create short urls. Every registered user can see all shorted urls but ownly modify its own. Admin users can invite other accounts and edit everything that can be edited (also urls created by other accounts).
|
||||
|
||||
So in general this is more a shared short url bookmark webpage than a shorturl service.
|
||||
|
||||
![Screenshot](./doc/img/pslinkscreenshot.png)
|
||||
|
||||
The Page comes with a basic commandline interface to setup the environment. If it is built with `cargo build release --target=x86_64-unknown-linux-musl` everything is embedded and it should be portable to any 64bit linux system.
|
||||
|
@ -157,7 +157,6 @@ pub(crate) async fn get_user(
|
||||
if let Ok(uid) = user_id.parse::<i64>() {
|
||||
slog_info!(server_config.log, "Getting user {}", uid);
|
||||
let auth = authenticate(id, server_config).await?;
|
||||
slog_info!(server_config.log, "{:?}", &auth);
|
||||
if auth.admin_or_self(uid) {
|
||||
match auth {
|
||||
Role::Admin { user } | Role::Regular { user } => {
|
||||
|
Loading…
Reference in New Issue
Block a user