osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
647 stars 344 forks source link

Admin username is required #2301

Closed Adyyda closed 5 years ago

Adyyda commented 5 years ago

Screen Shot 2019-06-02 at 22 27 40

When you make a clean install of osclass 3.8, you can't proceed further if you use a custom username. This is a serious issue since you must use only admin.

dev-101 commented 5 years ago

Just checked, it worked without any issues. There is no such code that restricts you to use 'admin', it is just a pre-entered value/suggestion.

Adyyda commented 5 years ago

Did you made a clean install and were able to insert for instance Admin-username? I tried several variants and each time i get that error (you can see the image). It worked only when i used the default username.

I have made the install in a subdomain.

Also, just noticed another issue. The latest osclass pack comes with Bender theme 3.1.5. When i enter admin area i get a message that a theme update exist (3.2.0) but you can't update it. There is no such button. I go to the market, download the 3.2 version and in replaces the 3.1.5 and when i check it i see this button from mobile mode? That issue doesn't exist in 3.1.5?

Screen Shot 2019-06-03 at 07 55 02 Screen Shot 2019-06-03 at 07 55 24 Screen Shot 2019-06-03 at 07 55 43

dev-101 commented 5 years ago

Your issue with username is related to something else in your setup, there is no such code that will restrict you. Yes, it was a clean install.

About another issue, do not post them in unrelated section. You have to create and connect your Market account inside your installation, also make sure your server can connect.

Adyyda commented 5 years ago

Ok. What username did you try?

I am asking because right now i have downloaded osclass from the site, and i had a clean install in the main domain and the same thing happens?

osclass.3.8.0.zip

In the end it seems that we cant use a username like User-Admin "-" seems to not be accepted by the script and if so, you should put a note regarding this in the installer. The moment i removed - and used a shorter name, it worked?

Adyyda commented 5 years ago

I went into admin area and tried to change the username and it can't be changed if i use User-Admin. Turns out that you can add only a-z and numbers but no special characters?

1

dev-101 commented 5 years ago

You can remove regex validation part if you like, but I am not sure if that is generally a good idea. Why do you want to use special characters for username? You can use underscore _ . Also, numbers are allowed.

Keep it safe & simple.