Welcome to Open Carnage
A resource for Halo Custom Edition and MCC modding, with unique means of rewarding content creation and support. Have a wander to see why we're worth the time! - EST. 2012
-
Content count
484 -
Joined
-
Last visited
-
Raffle Tickets
0
About Daywu
- Birthday July 15
Extra Information
-
Gender
Male
-
Occupation
Software Engineer
-
Interests
Fishing, Anime, Programming
Contact Methods
- Website
-
Steam
Daywu
Computer Details
-
Central Processor
Intel i7 8700
-
Motherboard
Intel B360
-
Graphics
Nvidia GTX 1060 3GB
-
Memory
16GB DDR4 2666
-
Storage
1TB HDD + 120GB SSD
-
Power Supply
500W
-
Case
iBP Trace
-
Operating System
Windows 10
-
Started playing City of Heroes. Found a private server to play it on.
-
Finished Silicon Valley and Mr. Robot. Currently watching Vikings S6.
-
Anyone watched "Weathering with You" yet? I'm watching it this coming Saturday! I've heard good things about it.
-
I am a Software Engineer for a government contractor. I mainly program using .NET
-
WaeV liked a post in a topic: How much should I charge the client for my mobile app?
-
Daywu liked a post in a topic: "AWW YEAH" Thread
-
Brings back chills when I first watch this outstanding movie.
-
Daywu liked a post in a topic: How much should I charge the client for my mobile app?
-
Sunstriker7 liked a post in a topic: PHP: password_verify() not working
-
Sunstriker7 liked a post in a topic: How much should I charge the client for my mobile app?
-
I've been watch Black Clover. I like the show so far, but my only complaint is the voice for Asta in the Japanese dub. It's so annoying haha.
-
UPDATE: The consumer never got back to me about the app, so I never sold it to the company. From this experience, I have learned that I should have documented contracts and come to an agreement before I start anything. Otherwise, I would just be wasting my time like what just happened in this situation.
-
Annihilation and Maze Runner: Death Cure
-
DiSiAC liked a post in a topic: PHP: password_verify() not working
-
Hey guys, I am working on a website for my Capstone Project and I am having unusual issues with some PHP. I have used the password_verify() function before and never had issues with it until now. Every time I try to use it with a password that contains a pound(#) symbol it returns false. The function returns true for anything else but that. The encrypted password used with the password_hash() function is working and I am pretty sure that it is inserting into the database correctly . Below is my code, please let me know if you notice anything that may be causing the issue or if you need more information. THIS IS DRIVING ME INSANE!! This is how I am inserting it into the database: require_once("mydb.php"); $fullName = $_REQUEST['fullName']; $prefName = $_REQUEST['prefName']; $gender = $_REQUEST['gender']; $profile = $_REQUEST['profile']; $email = $_REQUEST['email']; $username = $_REQUEST['username']; $password = $_REQUEST['password']; $password = password_hash($password, PASSWORD_BCRYPT); $query = "insert into USERS(full_name, preferred_name, username, password, gender, email, profile, comment_penalties, upload_penalties)" . " values('$fullName', '$prefName', '$username', '$password', '$gender', '$email', '$profile', 0, 0);"; $result = mysqli_query($conn, $query); if($result) { header("Location: login.php?status=1"); die(); } else { echo mysqli_error($conn); } mysqli_close($conn); This is how I am validating my password with the hash: <?php require_once('mydb.php'); $username = $_POST['username']; $password = $_POST['password']; //gets password based on the username function getPassword($username) { global $conn; $hash = ''; $query = "select PASSWORD from USERS where USERNAME='$username';"; $result = mysqli_query($conn, $query); if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { $hash = $row['PASSWORD']; } return $hash; } } //gets userID function getUserID($username) { global $conn; $userID = 0; $query = "select ID from USERS where USERNAME='$username';"; $result = mysqli_query($conn, $query); if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { $userID = $row['ID']; } return $userID; } } if(password_verify($password, getPassword($username))) { //creates a session for username and redirects to the index page session_start(); $userID = getUserID($username); $_SESSION['USERID'] = $userID; header("Location: index.html?userID=$userID"); } else { //return to login page with an error status header("Location: login.php?status=2"); } mysqli_close($conn); ?> UPDATE Okay never mind. I figured out why. The pound symbol was being treated as a fragment when I was passing it along through a URL.
-
Kru liked a post in a topic: Currently Playing
-
Definitely watching Shokugeki No Souma S3, Dies Irae , and Saredo Tsumibito wa Ryuu to Odoru
-
Daywu liked a post in a topic: Official Anime Thread
-
Hope everything went well for you!
-
Daywu liked a post in a topic: "Everything's fucking shit" Thread
-
Daywu liked a post in a topic: What did you do today?