DataObjects/Core_person.php
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 03:43:11 +0000 (11:43 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 03:43:11 +0000 (11:43 +0800)
DataObjects/Core_person.php

index d617b41..724e438 100644 (file)
@@ -1405,10 +1405,6 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
     
     function generateQRCode()
     {
-        if(empty($this->oath_key)){
-            return false;
-        }
-        
         $issuer = (empty($this->name)) ? rawurlencode('ROOJS') : rawurlencode($this->name);
         
         $uri = "otpauth://totp/{$issuer}:{$this->email}?secret={$this->oath_key}&issuer={$issuer}&algorithm=SHA1&digits=6&period=30";