For example, your Facebook name is JimBob, but there's already another JimBob on the board. If thats the boat you landed in, your best bet at this point is to move forward and focus on boosting your long-term savings in 2024. Sign up with google+ Sign up with FaceBook Sign up with Amazon Sign up with Apple Sign up with. Type cookie and it should suggest cookiebannertitle, select that and click enter. I'm also curious how you handle name collisions. You can open Firefox console and make the popup disappear: While on Firefox and on the Facebook login page, do cmd + option + i on Mac, or F12 on Windows. You might want to try making this an Extension (if possible). I know this is more of a hack than proper approach, so feel free to advice cleaner solutionĭestabilizator wrote:So I did it! I still can't believe that there is no extension for this. (this all happens in /phpbb/auth/provider/oauth/oauth.php) It just needs to be array with user_id, which is returned after you call user_add(). Then all I needed was to add user to database and then call link_account() after the user was added.Īt last, you need to fake $row (which would be user data when it checks, if the user is already in database), so the code can continue unchanged. I use user's FB name (replace spaces with dots and cut it to 20 chars) and e-mail.įunction perform_auth_login() from /phpbb/auth/provider/oauth/service/facebook.php gets this info, but doesn't return it (gives only FB ID), so I've modified it to return array with all the details (and corrected calls of this function from other locations). Then, if user tries to link with FB, but is not registered on the forum yet, automatically register him, instead of asking user to do it. So I did it! I still can't believe that there is no extension for this.īasically what you need to do, is turn on OAuth via Facebook, so users can link their accounts to FB. The user would enter his E-mail address and the default registration code would add the user for you. If you have either account, you can log in directly without registering a new one. The only difficulty you'd have is the E-mail address, but if the OAuth succeeded, you could probably pop up a window asking for his E-mail address.Įven better would be to take the user to the registration agreement and then the registration page with the existing information filled in. Please note that ASUS account is same as ROG account. That said, you've already got the username and password on the login form, the group_id would be the Registered Users group and the user_type would be whatever the default user type is (check the code). In other words, OAuth sounds like an authorization protocol, not a registration system. I would be surprised if it returned the password or E-mail address to you. I don't know for sure (I've never used OAuth), but I presume that you send it a user name and password and it basically replies with a Yes/No response letting you know whether the user name and password matched or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |