|
|
@@ -113,8 +113,11 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
|
|
113
|
113
|
if !p.status.is_empty() {
|
|
114
|
114
|
bail!("{}", p.status);
|
|
115
|
115
|
}
|
|
|
116
|
+ if p.nonce.is_empty() {
|
|
|
117
|
+ bail!("Verification failure: nonce required");
|
|
|
118
|
+ }
|
|
116
|
119
|
if !verify(&p.nonce, &nonce) {
|
|
117
|
|
- bail!("Verification failure");
|
|
|
120
|
+ bail!("Verification failure: nonce mismatch");
|
|
118
|
121
|
}
|
|
119
|
122
|
if !machine.is_empty() {
|
|
120
|
123
|
if !verify(&p.machine, &machine) {
|