Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database.sql #1

Closed
mpeconsulting opened this issue Sep 21, 2014 · 6 comments
Closed

database.sql #1

mpeconsulting opened this issue Sep 21, 2014 · 6 comments

Comments

@mpeconsulting
Copy link

Hi there,

I don't seem to be able to find the full database schema ... or should it self create.

Cheers,

Michael

@mensch
Copy link
Collaborator

mensch commented Sep 21, 2014

Hi Michael,

Thanks for noticing, I've just pushed an updated schema to the repository.

Best,

Marc

@mpeconsulting
Copy link
Author

Thank you so much.

Cheers,

Michael

@mpeconsulting
Copy link
Author

One more thing if you have a moment, if there was an admin user record inserted I could login. I'm trying to add through the database and hashing myself.

Many thanks,

Michael

@mensch
Copy link
Collaborator

mensch commented Sep 21, 2014

Ah yes, no users in the table presents a bit of conundrum when trying to log in. Currently new users are saved using Cake's Blowfish hasher and security salt. It might be easier to comment out the code inside the beforeFilter() method in the UsersController and replace it temporarily with $this->Auth->allow();. This will allow anybody to access all the methods of the UsersController, thus enabling you to use the add() method (http://example.com/users/add) in order to create a fresh admin user.

@mpeconsulting
Copy link
Author

Done ... Many thanks. Had my first go a making a book.

Thanks again,
Michael

@mensch
Copy link
Collaborator

mensch commented Sep 21, 2014

Nice! The project is very much a work in progress, so your mileage may vary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants