cb2004 Posted August 3, 2020 Share Posted August 3, 2020 I have a site where the members are organisations, I have setup these members using: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users That way we have nice access control. Those organisations would like to give access to employees, so I went through the process again and thought these could be added below the organisation, but this time I didnt add to the $config->usersPageIDs as these would all be different (the main organisation). Everything works ok, but the user cannot be found by using $users->find("email=address"), so I cant log them in, it can be found with $users->get(2365). I have tried adding check_access=0 but nothing seems to be working, any ideas? Link to comment Share on other sites More sharing options...
adrian Posted August 3, 2020 Share Posted August 3, 2020 Not really sure off the top of my head, but perhaps it might work with $pages->find("email=address"). You might want to also limit to the relevant template(s). I have used this feature on occasion but honestly it doesn't feel very polished. Link to comment Share on other sites More sharing options...
cb2004 Posted August 3, 2020 Author Share Posted August 3, 2020 Yes I did try that as well, I think because there is no parent its throwing it off. Will have to be a normal template I guess with email and password field and set a cookie when they login rather than check the member role. Link to comment Share on other sites More sharing options...
cb2004 Posted August 3, 2020 Author Share Posted August 3, 2020 Bug report posted: https://github.com/processwire/processwire-issues/issues/1223 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now