mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-10 17:43:23 +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.
|
// Extract the MECHANISM the client wants to use and start a session.
|
||||||
// Or fail at that and thrown an exception TODO: return Outcome
|
// Or fail at that and thrown an exception TODO: return Outcome
|
||||||
let mech = pry!(req.get_mechanism());
|
let mech = pry!(req.get_mechanism());
|
||||||
if mech != "PLAIN" || mech != "X-FABFIRE" {
|
if !((mech == "PLAIN") || (mech == "X-FABFIRE")) {
|
||||||
return Promise::err(capnp::Error {
|
return Promise::err(capnp::Error {
|
||||||
kind: capnp::ErrorKind::Failed,
|
kind: capnp::ErrorKind::Failed,
|
||||||
description: format!("Invalid SASL mech"),
|
description: format!("Invalid SASL mech"),
|
||||||
|
Loading…
Reference in New Issue
Block a user