mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-03 00:05:47 +00:00
fix
This commit is contained in:
parent
26d926838f
commit
ac258cb132
@ -113,8 +113,11 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
|
|||||||
if !p.status.is_empty() {
|
if !p.status.is_empty() {
|
||||||
bail!("{}", p.status);
|
bail!("{}", p.status);
|
||||||
}
|
}
|
||||||
|
if p.nonce.is_empty() {
|
||||||
|
bail!("Verification failure: nonce required");
|
||||||
|
}
|
||||||
if !verify(&p.nonce, &nonce) {
|
if !verify(&p.nonce, &nonce) {
|
||||||
bail!("Verification failure");
|
bail!("Verification failure: nonce mismatch");
|
||||||
}
|
}
|
||||||
if !machine.is_empty() {
|
if !machine.is_empty() {
|
||||||
if !verify(&p.machine, &machine) {
|
if !verify(&p.machine, &machine) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user