rustdesk лет назад: 4
Родитель
Сommit
ac258cb132
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/lic.rs

+ 4 - 1
src/lic.rs

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