hmt 4 лет назад
Родитель
Сommit
4b2443e965
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      bbb.ts

+ 3 - 2
bbb.ts

@@ -37,8 +37,9 @@ export class BBB {
   // check if request is autheticated with correct checksum
   authenticated = (secret: string) => {
     const checksum = this.generate_checksum(secret)
-    console.log(`Rejected incoming call to ${this.call}`)
-    return checksum === this.checksum_incoming
+    const ok = checksum === this.checksum_incoming
+    if (!ok) console.log(`Rejected incoming call to ${this.call}`)
+    return ok
   }
   find_meeting_id = (servers: server[]): Promise<server> => {
     if (!this.meeting_id) throw Error