hmt 4 years ago
parent
commit
4b2443e965
1 changed files with 3 additions and 2 deletions
  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