godotengine / godot-asset-library

PHP frontend for Godot Engine's asset library
https://godotengine.org/asset-library
MIT License
292 stars 87 forks source link

Method not allowed on /login #159

Closed nervaccio closed 6 years ago

nervaccio commented 6 years ago

Hi all, I tried to install this repository, i followed the instruction of README. I've imported the dump and all the migration. If i try to login at /login i got:

Method not allowed Method not allowed. Must be one of: POST

In fact in src/routes/auth.php only the POST method is defined. The same if i try: /register

What i'm missing to get this asset library up and running? I would help to migrate to Twig as template engine. #135

I'm using. OS: Ubuntu 18.04 PHP: 7.2 Webserver: PHP built-in server

Steps that i followd:

  1. Git clone
  2. composer install
  3. bower install
  4. cp src/settings-local-example.php src/settings-local.php
  5. create a database
  6. imported data/sqldump.sql
  7. imported all data/migration-*.sql

I'm sorry for my english but not a native speaker and i'm working on.

bojidar-bg commented 6 years ago

Make sure you are accessing the frontend and not the api. Additionally, ensure the RewriteBase in the .htaccess file is correct.

GET on login is hacked at: https://github.com/godotengine/godot-asset-library/blob/master/src/middleware.php#L24

nervaccio commented 6 years ago

You are right, the problem was on the .htaccess.

Thank you!

bojidar-bg commented 6 years ago

@nervaccio Since you mentioned you want to work on the twig templating, make sure to coordinate your work with @Calinou, since he had something done AFAIR.

nervaccio commented 6 years ago

Ok sure, i'll tag @Calinou on the right issue. Thx.