Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Big fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Aug 9, 2016
1 parent 0dcf38d commit 2c4206b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Safe & feature-rich auth plugin.

# Changelog

###v1.0.4
* Big Fix

###v1.0.3
* Added /logout
* Added tries
Expand Down
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: PiggyAuth
main: PiggyAuth\Main
version: 1.0.3
version: 1.0.4
api: [2.0.0]
load: POSTWORLD
author: MCPEPIG
Expand Down
2 changes: 1 addition & 1 deletion src/PiggyAuth/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getPlayer($player) {
return null;
}

public function updatePlayer(Player $player, $pin, $password, $uuid, $attempts) {
public function updatePlayer(Player $player, $password, $pin, $uuid, $attempts) {
$statement = $this->db->prepare("UPDATE players SET pin = :pin, password = :password, uuid = :uuid, attempts = :attempts WHERE name = :name");
$statement->bindValue(":name", strtolower($player->getName()), SQLITE3_TEXT);
$statement->bindValue(":password", $password, SQLITE3_TEXT);
Expand Down

0 comments on commit 2c4206b

Please sign in to comment.