Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Dec 2011 at 05:23 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dev001 commentedComment #2
patrickd commentedHi,
sorry you have to create a sandbox project and commit your module by git to the project's repository.
(go to http://drupal.org/project/user to do so)
You'll find more documentation about this here: http://drupal.org/node/1011196
Information about the review process: http://drupal.org/node/1068952
After you did that you should post the project page's link here and switch the status back.
regards and a happy new year!
Comment #3
dev001 commentedThanks for the response and A very happy new year to you.
I have created a sandbox project for it and also commited to Git.
here is the link: http://drupal.org/sandbox/loginradius/1387552
Please let me know if you need anything else from my side.
Thanks!
Comment #4
klausiYou need to set the status to "needs review" if you want to get a review.
Comment #5
patrickd commentedComment #6
dev001 commentedsorry about the status. I think you already changed it for me. Thank you so much.
Please let me know if you need any further information. Thanks!
Comment #8
dev001 commentedCould you please tell me how long it would take for the review of this project?
Thanks,
Deepak
Comment #9
klausiCurrently we are approaching 5 weeks. You can speed up the process by reviewing other projects.
Comment #10
patrickd commentedYou are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
README.txt is missing, see the guidelines for in-project documentation.
You only committed a "social_login_for_drupal.info" file and an empty subdirectory.
Please read the documentation (version control tab on your project page) on how to use git.
Comment #11
dev001 commentedPatrick - thanks you so much for the instructions. I'll read version control documentation and fix all these issue very soon.
Thanks again for all your help.
Deepak
Comment #12
dev001 commentedAdded branch version 7.x-1.0 with all the module files including readme.txt. Please let me know if anything else would be needed.
Thanks,
Deepak
Comment #13
klausiWrong branch name, "7.x-1.0" should be "7.x-1.x".
Get a review bonus and we will come back to your application sooner.
Comment #14
dev001 commentedThanks. Renamed "7.x-1.0" to "7.x-1.x".
Comment #15
Rajivespoir commentedHI,
Can you please let me know drupal 6 plugin etc has been installed and buttons etc show in Logintoboggan form etc
Just after logging in using any of the providers it goes to homepage not to the current page.
What part of code do I change.
Regards
Rajiv
Comment #16
dev001 commentedThanks for reviewing our social login module. Please visit the following link of documentation steps for Drupal6 - http://www.loginradius.com/developers/Plugins/Drupal6x
Please let met know if you have any other questions.
Thanks,
Deepak
Comment #17
Rajivespoir commentedHi,
I did visit the page and installed as per this but only issue is the redirect to current page
It always goes back to homepage and not current page after logging in.
Need it to go to current page from where login happens just dont know what part of .module file to edit.
Comment #18
rakesh sharma commentedhii,
i did use it , it's work fine for me. no redirection issue. you can use this download from site
http://www.loginradius.com/loginradius/plugins.aspx
i have to use it.
Comment #19
patrickd commentedFixed means that git permission was given to him as you're not a git admin you can't do that.
If you think this module is ready; switch to RTBC so a git admin will take a hopefully last check and if he things its good he'll promote it.
Comment #20
Rajivespoir commentedIt works fine just say if i login from page site.com/xxx it does not redirect to site.com/xxx after login but goes to site.com
Any advice ?
Comment #21
rakesh sharma commentedit's working
Comment #22
dev001 commented@Rajivespoir - we have fixed the redirection issue with Drupal6. you can get the recent copy from: http://www.loginradius.com/loginradius/plugins.aspx
@rakesh sharma - Thanks for reviewing the module.
Comment #23
sgabe commentedUnfortunately there are so many errors that I can't attach the full report. Please use the Coder module and review your code with minor settings. Also see Creating Drupal 7.x modules for more information on module development.
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
Comment #24
sgabe commentedSee the full report attached.
Comment #25
Rajivespoir commentedHi,
I checked the new revised plugin after loggin in the site still goes back to homepage only with /?destination=node%....
attached to url .
It does not go back to the original page logged in from.
Please have a look.
Rajiv
Comment #26
Rajivespoir commentedOk just rechecked it works only if Devel module redirect option is switched on
Comment #27
Rajivespoir commentedThat was a mistake devel setting no longer works
Comment #28
rakesh sharma commentedi have to cheked this plugin but there is a redirection issue that was my mistake in check. it redirect same page from comment section but not on all page .
but after installing update plugin recently. now it's work fine.
Comment #29
patrickd commentedComment #30
sgabe commentedThis still needs work, since the mentioned issues are not fixed yet.
Comment #31
Rajivespoir commentedI got redirection to work changed
$query = drupal_get_destination();
drupal_goto('',$query);
to
$query = $_GET['q'];
drupal_goto($query);
Comment #32
rakesh sharma commenteddrupal_redirect_form($form, $redirect = NULL);
working fine with your module.pls try this
Comment #33
dev001 commentedThanks for reporting all the issues and help with the review process.
i have clean up Master branch and also remove all the formatting errors from all the module files. I have also tested it with the Drupal coding standard module. Please review the 7.x module again.
Thanks!
Comment #34
Rajivespoir commentedHi,
Can you post a version 6 also as I am using that.
One more thing if used in conjunction with logintoboggan how would i place
the social login buttons in top of box above regular login
Rajiv
Comment #35
Rajivespoir commentedThats ok got it changed weight
Comment #36
Rajivespoir commentedOne more thing buttons show in Chrome not in Firefix please do check if its problem on your side also
Comment #37
dev001 commented@Rajivespoir - thanks for the feedback. It works fine in Firefox, chrome and IE 7,8,9; I just tested it again. could you please send me your website, so i can check. Or please check the demo site in Firefox: http://drupaldemo.loginradius.com/
Let me know. Thanks!
Comment #38
Rajivespoir commented$query = drupal_get_destination();
drupal_goto('',$query);
No longer works for 6
Now again goes back to homepage only please debug and upload changed / revised 6 plugin.
Comment #39
Rajivespoir commentedOk Sorry my mistake reverted to Getq
Comment #40
Rajivespoir commentedNow will debug Drupal 6 firefox and let you know
Comment #41
Rajivespoir commentedHey can someone let me know why the icons have suddenly vanished from Firefox ie, chrome, opera are ok.
Any advice would be good .
Rest all the module is ok.
Comment #42
rakesh sharma commentedreviewed again both versions working fine.
Comment #43
klausiplease see http://drupal.org/node/532400
Comment #44
Rajivespoir commentedOk it works fine ...just replace code on goto to getq
Comment #45
rakesh sharma commentedtested both works fine....
Comment #46
Rajivespoir commentedWhere do you put this drupal_redirect_form($form, $redirect = NULL); ?
Comment #47
dev001 commented@Rajivespoir - Could you please send us details about this issue on hello@loginradius.com? our technical support team would look at your website & configuration and resolve it quickly for you. Please let me know.
Thanks,
Deepak
Comment #48
misc commentedSorry, need to set this back to 'needs work', I have some issues, some regarding security and some about none Drupal standards way.
drupal_get_path('module', $module_name). Also you should separate your modules functions from theming, see http://api.drupal.org/api/drupal/includes!theme.inc/function/theme/7admin/config/people/SocialLogin/settings, it should beadmin/config/people/sociallogin/settingsis in off-line mode, why? If really needed, I think that
I have more issues, but I think the most important ones is listed above. Also, it seems that Your user account @LoginRadius is a company account, is that correct?
Comment #49
dev001 commentedHi Mikke - Thank you very much for reviewing the module. I'm working on fixing these issues and will update the module very soon with all these fixes.
Yes, i've created the account on the company's name. Is it going to a problem? I'm doing all the development work for Drupal module and i would be the one accessing this account. I can switch it to a personal account, Please advice.
Thanks again for all your help!
Deepak
Comment #50
dev001 commentedI have fixed all the mentioned issues.
For cURL - Require cURL for the social login communication, so I have added module file name (sociallogin.php) instead of LoginRadiusSDK.php.
Please review it and let me know if you see any other issues.
Thanks,
Deepak
Comment #51
patrickd commenteddon't fix your own issue
have a look at the application workflow
http://drupal.org/node/532400
Comment #52
dev001 commentedoops..sorry about that! Thanks for the correction.
Deepak
Comment #53
rakesh sharma commentedreviewed again,security parameters fixed and it looks fine.
Comment #54
misc commentedYou do a lot of stuff here that I wonder about, why do you set drupal variables and then delete them? Also you are clearing the cache and rebuilding the menu, I think that should be done manually by the user, if needed, not every time the settings are saved.
sociallogin_user_register_submityou declare a bunch of empty variables, why?$_SESSION['id'] = $idand on the next row $identity = $_SESSION['id']? The only thing I can see that you use $identity for is $account = user_external_load($identity).And there is more, this is not ready yet.
Comment #55
dev001 commentedI have fixed all the issues. Can you please review it again? Thanks!
Deepak
Comment #56
misc commentedI raised a couple of questions, could you please answer them.
Comment #57
dev001 commentedSorry about that. Please see the response below:
1. SocialLogin.admin.inc - I have restructured the code and cleaned up all variables and cache.
2. Sociallogin.module - Removed empty variables and Restructured the code file & removed session state.
So I have cleaned the code in details and refined these files. Please review it and let me know if you still have any questions.
Thanks,
Deepak
Comment #58
agarwal.sudhanshu commentedI have reviewed the module files, all issues posted by MiSc are fixed in latest commit.
I didn’t find any more security issues in code and its functioning properly.
So this module is in good shape and ready to move now.
Thanks
Sudhanshu
Comment #59
misc commentedSorry, this is not ready for RTBC.
Manual review:
sociallogin_form_user_login_alterYou comment saysImplements hook_login_form_alter(). There are no hook_login_form_alter.hook_user_login_form_alter, orpopup. You have to comment the code in a way that makes the functions understandable. If your module implements a hook it means that it is using a hook defined in a another module._sociallogin_user_login_form_alteris an internal function for the module, but still your comment says it implements the non existinghook_user_login_form_altersociallogin_user_register_submit, here you are getting a variable,$secret, and ad a empty string as value, why? You are doing this in a couple of places.module_invoke_all('sociallogin', $id, $account). Where is that hook defined?_sociallogin_user_login_form_alter, here you seem to remove stuff that belongs to the openid module, why? On the project page for the Openid module it says there are no Drupal 7 release.And there a lots more. I am missing comments in the code, you do a lot of stuff, but almost never documented.
Comment #60
dev001 commentedThanks you very much for the review. I have made all these changes suggested by you.
1,2,3. Added comments for all function in sociallogin.module and socialLogin.php
4. changed $secret arguments
5. removed module_invoke_all, cause now getting file info from info file.
6. removed opndID module
Please review it and let me know your feedback.
Thanks for your help!
Deepak
Comment #61
misc commentedManual review:
http://api.drupal.org/api/drupal/developer!globals.php/global/base_url/7
http://api.drupal.org/api/drupal/includes!common.inc/group/sanitization/7
Comment #62
dev001 commentedThanks for the review. I have fixed all these issues. Please see my comments below.
Issue# sociallogin_popup: It's fixed, I have removed the commented line.
Issue# hard coded form: I have to use hard coded form to open from in pop-up. It is required for this module to get email address of user after login from social provider, if the email address is not coming from provider. Email address is required in drupal database for each user.
Issues# cURL: Removed cURL and used Drupal default functionality: drupal_http_request()
Issue# Name: It was started initially by drupal community, i'm not sure why. If you think its wrong, please start a new thread for these issues.
Issue# sociallogin_user_login_form_alter: It's fixed
Issue# $loc and URL encode: fixed. I need encoded url for validate on LoginRadius so using drupal_encode_path() for encoding and url() for loc variable.
Please review it again and create a new thread for any issue (as per your naming issue).
Thanks for you time and help with this module!
Deepak
Comment #63
rakesh sharma commentedreviewed again all the above issues posted are fixed. not use form api but code is following drupal standards. looks and working great
Comment #64
klausiSorry for the delay, but you have not listed any reviews of other project applications in your issue summary as strongly recommended in the application documentation.
Review of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
manual review:
t("<p style='color:red;'>This email already registered or invalid. Please choose another one.<p>"): HTML tags should be outside of t() where possible.$msg = "<p>Please enter your email address to proceed.</p>";" all user facing text must run through t() for translation.Comment #65
dev001 commentedThanks so much for the review, I have fixed all these issue. Please see my comments below.
1. uses l() and theme()
2. all hooks documented.
3. refined no use html tags in t()
4. removed
5. it's a function not constructor so chaneged name.
6. opened a popup using html elem for popup design we need some html tags like div.
7. using t()
8. removed not uses
9. removed not uses
10. removed constant using admin setting.
11. removed $options var
Comment #66
dev001 commentedThanks so much for the review, I have fixed all these issue. Please see my comments below.
1. uses l() and theme()
2. all hooks documented.
3. refined no use html tags in t()
4. removed
5. it's a function not constructor so chaneged name.
6. opened a popup using html elem for popup design we need some html tags like div.
7. using t()
8. removed not uses
9. removed not uses
10. removed constant using admin setting.
11. removed $options var
Comment #67
dev001 commentedAdded form API.
Comment #68
nikit commentedI am add change due to fapi requirements, so mark it as reviewed and tested by community...
Comment #69
piyush_p3vr commentedMy drupal projects files are under "bvdrupaldev.ir/usecod/" directory.
I am using loginradius module, but it is not working.
500 error is coming after login, instead if sitepage.
Login page:
bvdrupaldev.ir/usecod/?q=user
Note: "bvdrupaldev.ir" domain name is restricted it is accesseble outside of the ogranization.
Please tell me the configuration of loginradius under subdirectory.
Comment #70
dev001 commentedHi piyush_p3vr - thanks for integrating social login module on your website. It should work fine under a subdirectory. Could you please send me the details about your website where you are implementing at hello@loginradius.com. I'll check it out and resolve the issue for you.
Thanks,
Deepak
Comment #71
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #71.0
klausiadded sandbox link
Comment #72
dev001 commentedI have reviewed other projects and also added the links in the summary, please review the module. Thanks.
Comment #72.0
dev001 commentedadded git code link and reviewed projects
Comment #72.1
dev001 commentedAdd review!
Comment #73
misc commentedAdded the review bonus tag because of reviews done of the applicant.
Comment #74
klausimanual review:
You should implemtent hook_uninstall() to remove all variables that your module defines.
But that is just a minor issue, so ...
Thanks for your contribution, loginradius! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Thanks to the dedicated reviewer(s) as well.
Comment #75
dev001 commentedThank you very much, klausi.
I like the Drupal community and now love reviewing projects. I'll keep it going and also joined the group of reviewers, so that i can help with my little contribution.
I really appreciate your help with my module. Please let me know if i can contribute to community in any other way.
Thanks,
Deepak
Comment #76
LEKSHMY commentedMy issue is that once the user gets login(through the drupal login module and not using the loginradius login) using their fb or twitter mailid the users role is changing to admin and gets redirected to the admin page!!!But wen the user logs in using the login radius fbconnect the user is directly goung to his user page!!!
Pls help me!!
Thanks in advance!!!
Comment #77
patrickd commentedthis issue is closed, please create a bug/support issue in the module's issue queue
Comment #78.0
(not verified) commentedreview added