Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can't login via direct access using Member API
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can't login via direct access using Member API

 Post Reply Post Reply
Author
venamore View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2008
Location: Brisbane, AU
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote venamore Quote  Post ReplyReply Direct Link To This Post Topic: Can't login via direct access using Member API
    Posted: 29 April 2008 at 5:31am
Hi,
 
I have used the Member API to automate the login for my users using my current website on to my WebWiz forum.
 
I also have users in my forum who are not users in my current website - I manually create these users when they are required (Suits our business requirements and only small scale, so this is the way we want it). eg These users are in the forum tblAuthor table, but not in my websites database, which is fine and they way we want it to work.
 
The non-website users sign in directly via the forum login page (eg www.company.com/forum). This works fine.
 
When the website users sign in via my websites login page and choose to go to the forum (via a link in my websites header), this works fine and they are logged in correctly to the forum.
 
But when the website users sign in via the forum login page (eg www.company.com/forum), this is where the problem lies. The users are constantly receiving the following error...
 
The Username or Password entered is incorrect.
Please try again.
 
I have one website user (thankfully my user), who is able to login directly into the forum and via my website. No idea how this happened but it shows that it is possible.
 
Any ideas on how to fix up my website users so that they can login both via my website and also directly via the forum?
 
Thanks for any help. Smile
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2008 at 9:02am
It is not possible to mix login types. If you have the existing member API enabled then you can no-longer use the forums login system but instead use your website login system.
Back to Top
venamore View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2008
Location: Brisbane, AU
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote venamore Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2008 at 10:44pm
Hi,
 
Thanks for your prompt reply. As I mentioned though I have an account that is on both my website and my forum, and it can access the forum directly through the forum page sign in. So it looks like it is possible somehow. Do you have any idea how that would have occurred (just so that I can repeat the process for the users I want to)? Thanks. Smile
Back to Top
venamore View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2008
Location: Brisbane, AU
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote venamore Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 3:41am
Hi again,
 
Does anyone have any ideas on this one? Thanks. Smile
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 8:10am
It can work but is rather hit and miss so isn't recommended as things like passwords and email addresses can go out of sync with your own login system.

Your users would also need to login the first time through your own login pages so that the session variables are created so when the user then navigates to the forum an account is created for them using the data set in from your own login system.

Instead what I would recommend doing is to fully integrate Web Wiz Forums with your own login system, by entering the login, registration, and logout URL's. This way if the user clicks the login button in the forum they are taken to your sites login page.

If you are clever and use the HTTP_REFERRER in your own login system you should also be able to detect they have come from the forum to your login page and then redirect them back to the forum once they login.


Edited by WebWiz-Bruce - 07 May 2008 at 8:13am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.