Updated basic_auth issue with Javascript.

This commit is contained in:
jvelilla
2015-07-03 09:28:19 -03:00
parent 011a6b7804
commit f0eff2cb98
5 changed files with 4 additions and 27 deletions

View File

@@ -7,7 +7,7 @@ var userAgent = navigator.userAgent.toLowerCase();
var firstLogIn = true;
ROC_AUTH.login = function() {
var form = document.forms[0];
var form = document.forms['cms_basic_auth'];
var username = form.username.value;
var password = form.password.value;
//var host = form.host.value;

View File

@@ -3,7 +3,7 @@
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
<div>
<div>
<form action method="POST">
<form name="cms_basic_auth" action method="POST">
<div>
<input type="text" name="username" required>
<label>Username</label>