瀏覽代碼

Fix detail in webauthn form

Gabriel Badano 2 年之前
父節點
當前提交
8a25a763ee
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      protected/controllers/site.php

+ 5 - 2
protected/controllers/site.php

@@ -42,7 +42,7 @@ class site extends controller
                                 'placeholder' => 'Email',
                                 'class'       => 'step1'
                             ),
-                            'value' => $_COOKIE['login_email'] ?? ''
+                            'value'       => $_COOKIE['login_email'] ?? ''
                         ))
                         : new input('usuario', array(
                             'rules'       => array(
@@ -154,7 +154,10 @@ class site extends controller
         $form = new form('register', array(
             new column(array(
                 new input('dispositivo', array(
-                    'label' => '',
+                    'label'       => '',
+                    'rules'       => array(
+                        'required' => true
+                    ),
                     'htmlOptions' => array(
                         'placeholder' => 'Dispositivo'
                     )