# |
Feb 13th 2020, 05:09 |
christianjohn.gss |
hello! |
# |
Feb 12th 2020, 22:47 |
damiano |
hashing has no problem, as you can see i use hash() but if i do hash(username) anyone can create it (knowing the salt) |
# |
Feb 12th 2020, 22:36 |
sebastian.krzewinski. |
sorry for the disappointment |
# |
Feb 12th 2020, 22:35 |
sebastian.krzewinski. |
i dont have even created database xd |
# |
Feb 12th 2020, 22:35 |
sebastian.krzewinski. |
:yum: |
# |
Feb 12th 2020, 22:31 |
ricksaccous |
lol i figured this wasn't a big deal for you since you were sharing it no worries @sebastian.krzewinski. i was just teasing |
# |
Feb 12th 2020, 22:29 |
sebastian.krzewinski. |
root is default database username in xamp ;) @ricksaccous |
# |
Feb 12th 2020, 22:24 |
sebastian.krzewinski. |
@damiano default hashing is week? |
# |
Feb 12th 2020, 22:21 |
damiano |
@neon1024 yesterday we were talking about token creation. I came to this conclusion: Security::hash($username . Security::randomString(32) . microtime(), 'sha256', true); it seems quite robust :) |
# |
Feb 12th 2020, 22:17 |
sebastian.krzewinski. |
2. i dont neet database nwo |
# |
Feb 12th 2020, 22:17 |
sebastian.krzewinski. |
1. no |
# |
Feb 12th 2020, 21:57 |
challgren |
https://www.seohost.com/vps.html it runs cPanel |
# |
Feb 12th 2020, 21:57 |
slackebot |
<challgren> |
# |
Feb 12th 2020, 21:56 |
ricksaccous |
lol |
# |
Feb 12th 2020, 21:56 |
ricksaccous |
root at localhost |
# |
Feb 12th 2020, 21:56 |
ricksaccous |
and his db is not able to be read |
# |
Feb 12th 2020, 21:54 |
slackebot |
<challgren> |
# |
Feb 12th 2020, 21:49 |
challgren |
wait you have a prefix called admin and a directory in wwwroot/admin? |
# |
Feb 12th 2020, 21:30 |
sebastian.krzewinski. |
for now is working x) |
# |
Feb 12th 2020, 21:30 |
sebastian.krzewinski. |
http://srv31838.seohost.com.pl/admin |
# |
Feb 12th 2020, 20:38 |
challgren |
Or setup a vhost locally and a hosts entry |
# |
Feb 12th 2020, 20:37 |
challgren |
For Dev you should just do bin/cake server and it will launch the built in php server on localhost:8765 |
# |
Feb 12th 2020, 20:36 |
challgren |
If your using cpanel just delete the public_html folder and symlink it to wwwroot |
# |
Feb 12th 2020, 20:35 |
challgren |
@sebastian.krzewinski. what you should do is align your project directory structure as the user. Are you using cpanel? |
# |
Feb 12th 2020, 20:31 |
luizcmarin |
@ndm thanks |
# |
Feb 12th 2020, 20:29 |
ndm |
@luizcmarin 36 characters. That's 4 dashes + 32 hex digits, where each hex pair can store 8 bit = 16 * 8 = 128 |
# |
Feb 12th 2020, 20:29 |
phantomwatson |
Goodnight! |
# |
Feb 12th 2020, 20:29 |
sebastian.krzewinski. |
goodnight all |
# |
Feb 12th 2020, 20:29 |
sebastian.krzewinski. |
for now thanks all for help |
# |
Feb 12th 2020, 20:29 |
sebastian.krzewinski. |
@phantomwatson i buyed a hosting. i will see it there |
# |
Feb 12th 2020, 20:13 |
luizcmarin |
@challgren _"If the db type is char(36) it will map to uuid automagically"._ *36 or 128?* https://book.cakephp.org/4/en/core-libraries/text.html#generating-uuids |
# |
Feb 12th 2020, 20:12 |
phantomwatson |
I think you'd add this line to your `/webroot/.htaccess` file: `RewriteBase /path/to/app`. Read https://book.cakephp.org/3/en/installation.html#url-rewriting for reference. |
# |
Feb 12th 2020, 20:10 |
phantomwatson |
"Not from the domain's root" meaning your whole site is accessed through `example.com/subdirectory` instead of just `example.com/`. |
# |
Feb 12th 2020, 20:09 |
phantomwatson |
Oh, I think you may need to do something special if you're accessing CakePHP not from a domain's root. I'll check in the docs for specifics. |
# |
Feb 12th 2020, 20:07 |
sebastian.krzewinski. |
localhost/oven/red/admin |
# |
Feb 12th 2020, 20:07 |
sebastian.krzewinski. |
not this |
# |
Feb 12th 2020, 20:07 |
sebastian.krzewinski. |
https://i.imgur.com/IYdbAMf.png |
# |
Feb 12th 2020, 20:06 |
sebastian.krzewinski. |
5 and now i have this |
# |
Feb 12th 2020, 20:06 |
sebastian.krzewinski. |
4. i created folder under webroot named "admin" to have paste my files from my project |
# |
Feb 12th 2020, 20:06 |
phantomwatson |
The problem might be that in `routes.php`, your prefix is "Admin" (capitalized) when it should be "admin" (lowercase). |
# |
Feb 12th 2020, 20:04 |
sebastian.krzewinski. |
3. to load /admin page |