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

admin #68

Open
ncopz opened this issue Feb 17, 2021 · 20 comments
Open

admin #68

ncopz opened this issue Feb 17, 2021 · 20 comments

Comments

@ncopz
Copy link

ncopz commented Feb 17, 2021

How can I rename the admin folder for security?

@Wemago
Copy link
Contributor

Wemago commented Feb 19, 2021

You can change it on config file.
Look at formwork/defaults.php and you'll see admin -> root.

@ncopz
Copy link
Author

ncopz commented Feb 20, 2021

How to align center images in markdown?
And I also don't see any align center/left/ right icon in the editor.

Preview (eye icon) not working, does not match the edited/new post.

@Wemago
Copy link
Contributor

Wemago commented Feb 24, 2021

Honestly I'm don't have big knowledge on markdown, maybe project owner @giuscris can have an answer for that.

The preview icon does work, the page needs to be routable.

@ncopz
Copy link
Author

ncopz commented Feb 24, 2021

Yes, you are right. The page needs to be routable.

Now I have a new problem and I just found out earlier. Yesterday I only tried formwork from xampp only and because I like this project, then I tried installing it on one of my domains. Once installed, I was surprised by not being able to access the admin page, every time I go to the domain page, I always return to the home page.

@Wemago
Copy link
Contributor

Wemago commented Feb 24, 2021

I've only worked with formwork on local, so I haven't got a clue about that, but it should work since I'm using local domains with SSL. Your error can be related to a config url or something like that. Did you modify the htaccess?

Do you know laragon? It's a really good alternative for xampp.

@ncopz
Copy link
Author

ncopz commented Feb 24, 2021

I know Laragon but have never tried it.

I didn't modify anything in it, after I took it from composer (composer create-project getformwork/formwork) then I uploaded it.

This is the domain that I installed Formwork but the admin page can't be accessed.
https://aquarius.click

@Wemago
Copy link
Contributor

Wemago commented Feb 24, 2021

Do you have admin set for true on the config file?
I'm trying to figure out a way to debug it.

@ncopz
Copy link
Author

ncopz commented Feb 24, 2021

Yes and after uploading it then accessing the admin page I just need to create a new username and password?

I've also tried other hosting but the results are still the same.

@Wemago
Copy link
Contributor

Wemago commented Feb 24, 2021

You only create the user if it's a fresh installation.
I need to check if I have a spare space on one of my domains to do some testing.

On your domain is it a fresh installation?

@ncopz
Copy link
Author

ncopz commented Feb 24, 2021

Of course, I do it from ..

With Composer
If you prefer to install the latest stable release of Formwork with Composer you can use this command:

$ composer create-project getformwork/formwork
Composer_ will create a formwork folder with a fresh ready-to-use Formwork installation.

@giuscris
Copy link
Member

Yes, you are right. The page needs to be routable.

Now I have a new problem and I just found out earlier. Yesterday I only tried formwork from xampp only and because I like this project, then I tried installing it on one of my domains. Once installed, I was surprised by not being able to access the admin page, every time I go to the domain page, I always return to the home page.

@ncopz for security reasons you can register a new user only from localhost because in remote hosting the first one who can access the admin panel can register itself.

@ncopz
Copy link
Author

ncopz commented Feb 25, 2021

Yes, you are right. The page needs to be routable.
Now I have a new problem and I just found out earlier. Yesterday I only tried formwork from xampp only and because I like this project, then I tried installing it on one of my domains. Once installed, I was surprised by not being able to access the admin page, every time I go to the domain page, I always return to the home page.

@ncopz for security reasons you can register a new user only from localhost because in remote hosting the first one who can access the admin panel can register itself.

You mean, I create a new user + password from localhost and then upload it to my hosting?

@ncopz
Copy link
Author

ncopz commented Feb 25, 2021

Now I can access the admin page.
What can I do now if I delete a registered user from localhost? Or are there two people left in it?

Thank you @giuscris

work

@wsokc
Copy link

wsokc commented Feb 28, 2022

Yes, you are right. The page needs to be routable.
Now I have a new problem and I just found out earlier. Yesterday I only tried formwork from xampp only and because I like this project, then I tried installing it on one of my domains. Once installed, I was surprised by not being able to access the admin page, every time I go to the domain page, I always return to the home page.

@ncopz for security reasons you can register a new user only from localhost because in remote hosting the first one who can access the admin panel can register itself.

How to do this without localhost capabilities ?

@Imerion
Copy link

Imerion commented Mar 10, 2022

I also wonder how to do this without running from localhost. I have seen a solution in other similar CMS systems where the first user registering after installation gets to download a file which should be uploaded to the server and only after that will it be possible to log in with that user. That will ensure only a person with access to the server can create a new user.

@wsokc
Copy link

wsokc commented Mar 11, 2022

@ncopz

can you share a dummy file for us to use please ?

@ncopz
Copy link
Author

ncopz commented Mar 11, 2022

I also wonder how to do this without running from localhost. I have seen a solution in other similar CMS systems where the first user registering after installation gets to download a file which should be uploaded to the server and only after that will it be possible to log in with that user. That will ensure only a person with access to the server can create a new user.

It can, and I've done it and it works. And I also modified the script code according to my wishes. (nirvanaholic.com)

@ncopz
Copy link
Author

ncopz commented Mar 11, 2022

Yes, you are right. The page needs to be routable.
Now I have a new problem and I just found out earlier. Yesterday I only tried formwork from xampp only and because I like this project, then I tried installing it on one of my domains. Once installed, I was surprised by not being able to access the admin page, every time I go to the domain page, I always return to the home page.

@ncopz for security reasons you can register a new user only from localhost because in remote hosting the first one who can access the admin panel can register itself.

How to do this without localhost capabilities ?

Using two users during the first installation and I'm using it successfully till now for nirvanaholic.com

@giuscris
Copy link
Member

Hello everyone,

I'm considering different options to let user register from remote, obviously I want to keep it secure.

@Imerion it's a good idea what you've mentioned about other systems, I think I'll make an implementation like this.

Since also @wsokc asked, currently you can first register in localhost, then you can copy to remote the file admin/acoounts/<yourusername>.yml at the same location.

Thank you for your interest in Formwork.

@Imerion
Copy link

Imerion commented Mar 12, 2022

@giuscris Sounds great! And thanks for your work on this project - it looks very interesting and I would really like to try it out some more.

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

No branches or pull requests

5 participants