techdev-solutions / trackr-vagrant

7 stars 6 forks source link

Give a hint to adjust the import.sql in readme.md #1

Open d0x opened 9 years ago

d0x commented 9 years ago

Thanks for providing this vagrant image!

The only thing i need to do was putting my email address as an administrator in the import.

What means:

vagrant ssh
$ sudo apt-get install zip
$ vi apache-tomcat-8.0.15/webapps/ROOT.war
# select the import.sql and put your googlemail address to the admin@techdev.de
$ apache-tomcat-8.0.15/bin/shutdown.sh
$ apache-tomcat-8.0.15/bin/startup.sh

Best Regards, Christian.

alexgutjahr commented 9 years ago

Hi Christian, thanks for your feedback. Just to get this right, you are talking about changing the email of the admin user (https://github.com/techdev-solutions/trackr-backend/blob/9e250fc734e2840499760db8e2de428ef837554f/src/main/resources/import.sql#L17)?

Cheers, Alex

d0x commented 9 years ago

Yes, thats what i did.

alexgutjahr commented 9 years ago

Alright I see, here are my two cents:

There is no reason you have to change the email, because there is a dedicated endpoint for the admin login (i.e. it doesn't use Google or any other authentication provider but plain username + password).

What I think you did is overriding the email and then using the default Google login so you're account is admin by default, didn't you?

d0x commented 9 years ago

Ah, i haven't saw that endpoint. As you say, with this you don't need to overwrite the email.

Maybe you should mention this one.