Jump to content

Is it possible to check if the password is correct without PW?


anttila
 Share

Recommended Posts

We have many booking calendars made with ProcessWire (own databases) and I want to do a web app (SQL) which allows user to log in. First, the user chooses the right calendar and then (s)he have to log in. The user can be from any of those calendars and the app is not running on ProcessWire (it can if necessary). So if there any way to make sure that the user has rights to the calendar (s)he tries to log in and if the password is correct.

Is there any better way to do this? I could also use PIN codes or something, but those need to be encrypted too.

  • Multiple ProcessWires
  • A lot of users per ProcessWire
  • Everyone can log in to the web app (when using right calendar)
Link to comment
Share on other sites

1 hour ago, bernhard said:

Do you know about bootstrapping pw? https://processwire.com/api/include/

Are you saying that I can just find a right ProcessWire and include its index.php to my web app, and I have full access to its pages and users? I can't but wonder and love the chances of this platform. Thanks! This is so awesome work.

  • Like 7
Link to comment
Share on other sites

  • 2 months later...

Is it possible to use this kind of technique for multisite (different databases and site folders, same core and index.php).

How I can tell ProcessWire which site is the right one after required index.php (it probably uses our demo site as default). There is no point to do own install for all the sites because those are almost identical, but I need to test if the user has the correct password so I need to use right ProcessWire's database / config.php / site folder. My app knows which website and database is the right one, so can I pass it to ProcessWire somehow or do I have to use right config.php for that?

Link to comment
Share on other sites

11 hours ago, wbmnfktr said:

Maybe this is interesting as well:

Multi-site: https://processwire.com/api/modules/multi-site-support/

Multi-instance: https://processwire.com/blog/posts/multi-instance-pw3/

Depending on your needs, existing sites and setups this could become handy.

I know how to use multisite system, I have it already working. What I need to know is can I somehow use that index.php to confirm that the username and the password are ok (all sites have different users). There are multiple databases under one index.php, so how to tell PW which one is right when using external PHP code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...