Skip to content

Commit

Permalink
server: warn if not users exist when auth enabled
Browse files Browse the repository at this point in the history
Instead of erroring out.

Issue: #267
  • Loading branch information
jasonish committed Apr 13, 2023
1 parent ca6d343 commit 482a09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub async fn main(args: &clap::ArgMatches) -> Result<()> {

if let AuthenticationType::UsernamePassword = server_config.authentication_type {
if !context.config_repo.has_users()? {
bail!("Username/password authentication is required, but no users exist");
warn!("Username/password authentication is required, but no users exist");
}
}

Expand Down

0 comments on commit 482a09b

Please sign in to comment.