Re: [Add-on] RevCMS Bcrypt
I think you should also include the code for logging in, i'm pretty sure that if u only use this you just make your site unable to be logged in :D
atm it looks something like this:
Code:
function auth_login(){
if($hashfromdb == hashed($_POST['passu'])){
return true;
}else{
return false;
}
Wont work because every time you do password_hash($x) it returns a different hash. You should be using password_verify() instead.
Code:
function auth_login(){
if(password_verify($_POST['passu'], $hashfromdb)){
return true;
}else{
return false;
}
Re: [Add-on] RevCMS Bcrypt
Good shit, although people should be moving away from this CMS and not extending it's life.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
Aamiainen
I think you should also include the code for logging in, i'm pretty sure that if u only use this you just make your site unable to be logged in :D
atm it looks something like this:
Code:
function auth_login(){
if($hashfromdb == hashed($_POST['passu'])){
return true;
}else{
return false;
}
Wont work because every time you do password_hash($x) it returns a different hash. You should be using password_verify() instead.
Code:
function auth_login(){
if(password_verify($_POST['passu'], $hashfromdb)){
return true;
}else{
return false;
}
Thanks for reminding me lol.
Fixed post - includes password_verify($password) now. (RZ kinda fucked the styling, easy fix.)
Re: [Add-on] RevCMS Bcrypt
still unusable
boolean password_verify ( string $password , string $hash )
Re: [Add-on] RevCMS Bcrypt
@Jonteh has a good point, or tho this is a decent upgrade users should be moving away from Rev, Yes it was a good CMS but has now become outdated.
Re: [Add-on] RevCMS Bcrypt
Bcrypt never let me down, for sure less decryptable than md5. Thanks!
Do note you can't simply change the hashing method if your hotel already has a user base. Old users will not be able to login again.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
MrSpooks
@
Jonteh has a good point, or tho this is a decent upgrade users should be moving away from Rev, Yes it was a good CMS but has now become outdated.
Indeed. This is very outdated code, although from the releases it's still the easiest to use.
From my point of view I see 4 usable CMS's: Chocolatey, RevCMS, BainCMS. Chocolatey uses framework and it actually crashed my hotel several times. BrainCMS I have never used, so can't really say anything about it. I don't personally like RevCMS, I believe it's just easier to use for people.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
Theft
Chocolatey uses framework and it actually crashed my hotel several times.
I don't quite understand how a CMS could crash your Hotel? I understand he's butchered the Lumen Framework but even so, your hotels configuration must be terrible.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
Theft
Indeed. This is very outdated code, although from the releases it's still the easiest to use.
From my point of view I see 4 usable CMS's: Chocolatey, RevCMS, BainCMS. Chocolatey uses framework and it actually crashed my hotel several times. BrainCMS I have never used, so can't really say anything about it. I don't personally like RevCMS, I believe it's just easier to use for people.
Wait. A CMS crashed your hotel? I'm sure something's wrong in your hotel configuration...
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
NoBrain
I don't quite understand how a CMS could crash your Hotel? I understand he's butchered the Lumen Framework but even so, your hotels configuration must be terrible.
This guy sounds to me like he had an issue so instead of figuring out what actually caused the problem he's just blaming the first thing that comes to mind.
A CMS crashing a hotel. Fantastic.
Re: [Add-on] RevCMS Bcrypt
Knowing the userbase on thefts hotels i'd say it's most likely possible that someone has exploited the cms to crash the emu. But idk if thats even possible, never used chocolatey myself.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
NoBrain
I don't quite understand how a CMS could crash your Hotel?
Never underestimate the true power of PhP.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
NoBrain
I don't quite understand how a CMS could crash your Hotel?
Quote:
Originally Posted by
maritnmine
Never underestimate the true power of PhP.
That might be the main reason lord @maritnmine made a CMS in ASP.NET in the past.
Re: [Add-on] RevCMS Bcrypt
Quote:
Originally Posted by
Yesser
That might be the main reason lord @
maritnmine made a CMS in ASP in the past.
It was in ASP.NET, not ASP.