mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Removed a debug message, added a re-selection of data if the password is converted, fixed issue where files could not be uploaded due to directory option added.
This commit is contained in:
parent
5b9e048758
commit
819408c0f5
@ -19,7 +19,7 @@ checkSession();
|
||||
<label><?php i18n("Upload Files"); ?></label>
|
||||
<div id="upload-drop-zone">
|
||||
<span id="upload-wrapper">
|
||||
<input id="fileupload" type="file" name="upload[]" data-url="components/filemanager/controller.php?action=upload&path=<?php echo($_GET['path']); ?>" multiple directory webkitdirectory mozdirectory>
|
||||
<input id="fileupload" type="file" name="upload[]" data-url="components/filemanager/controller.php?action=upload&path=<?php echo($_GET['path']); ?>" multiple>
|
||||
<span id="upload-clicker"><?php i18n("Drag Files or Click Here to Upload"); ?></span>
|
||||
</span>
|
||||
<div id="upload-progress"><div class="bar"></div></div>
|
||||
|
@ -167,10 +167,6 @@ class User {
|
||||
|
||||
public function Authenticate() {
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
if( $this->username == "" || $this->password == "" ) {
|
||||
|
||||
exit( formatJSEND( "error", "Username or password can not be blank." ) );
|
||||
@ -239,6 +235,10 @@ class User {
|
||||
$query = "UPDATE users SET password=? WHERE username=?;";
|
||||
$bind_variables = array( $this->password, $this->username );
|
||||
$return = $sql->query( $query, $bind_variables, array() );
|
||||
|
||||
$query = "SELECT * FROM users WHERE username=? AND password=?;";
|
||||
$bind_variables = array( $this->username, $this->password );
|
||||
$return = $sql->query( $query, $bind_variables, array() );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,8 +72,6 @@
|
||||
|
||||
authenticate: function() {
|
||||
|
||||
console.log( this.loginForm.serialize() );
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: this.controller + '?action=authenticate',
|
||||
|
Loading…
Reference in New Issue
Block a user