mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-01-03 17:13:48 +01:00
fix stupid logic error
This commit is contained in:
parent
4611ed5b48
commit
37db05a557
@ -133,7 +133,7 @@ impl authentication_system::Server for Auth {
|
||||
// Extract the MECHANISM the client wants to use and start a session.
|
||||
// Or fail at that and thrown an exception TODO: return Outcome
|
||||
let mech = pry!(req.get_mechanism());
|
||||
if mech != "PLAIN" || mech != "X-FABFIRE" {
|
||||
if !((mech == "PLAIN") || (mech == "X-FABFIRE")) {
|
||||
return Promise::err(capnp::Error {
|
||||
kind: capnp::ErrorKind::Failed,
|
||||
description: format!("Invalid SASL mech"),
|
||||
|
Loading…
Reference in New Issue
Block a user