implement dclogin scheme (#3541)

* start implementing dclogin scheme

* fix formatting

* add test for usename+extension@host cases

* add test with all advanced options

* add changelog

* jsonrpc api and regenerate node constants

* Update src/qr/dclogin_scheme.rs

Co-authored-by: Hocuri <hocuri@gmx.de>

* apply Hocuris comments from code review

* fix clippy

* Use .eq_ignore_ascii_case()

* rename internal function apply_from_login_qr
to configure_from_login_qr

* fix error message

* cargo fmt

* remove test todo comment

Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
Simon Laux
2022-09-29 18:32:17 +02:00
committed by GitHub
parent 37c6001b6c
commit 110f56777d
10 changed files with 524 additions and 4 deletions

View File

@@ -94,6 +94,9 @@ pub enum QrObject {
invitenumber: String,
authcode: String,
},
Login {
address: String,
},
}
impl From<Qr> for QrObject {
@@ -224,6 +227,7 @@ impl From<Qr> for QrObject {
authcode,
}
}
Qr::Login { address, .. } => QrObject::Login { address },
}
}
}