CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Critical: CiviAuth Plugin Expired Status Not Working
Pages: [1]

Author Topic: Critical: CiviAuth Plugin Expired Status Not Working  (Read 1597 times)

corster

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 0
  • CiviCRM version: CiviCRM 4.0.x
  • CMS version: Joomla 1.7.x
Critical: CiviAuth Plugin Expired Status Not Working
August 12, 2011, 06:32:47 pm
We are relying on the CiviCRM Joomla Authentication Plugin to manage the different memberships and how they login and what access level they get.  We've notice a pretty big hole in how this plugin manages the Expired users.  It won't log the user in, so they are forced to create new user accounts.  It also creates a new membership instead of updating their expired one.

Can someone please take a look at this.  I can provide senarios if needed.

Thanks,

Curtis
Curtis

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 12, 2011, 07:32:55 pm
this is, admittedly, a challenge for determining workflow.

yes -- it blocks access if your membership is expired, which means the user can't login and renew their membership. of course, blocking the user is sort of the whole point of the plugin.

in v1.1 we added a feature so you could redirect the user to a contribution page. the way that feature works is it determines if your credentials authenticated, but blocks you from actually logging in. since at that point it knows who you are as a civi contact, it redirects you to the selected contribution page and uses a checksum value to populate the form with your data. i think this was a pretty effective solution for a somewhat complex problem.

if that functionality is not working, please describe what you're seeing. if you're using v2 of this extension with Civi 4/J1.6+, please indicate such. i've not tested that particular functionality with the new version of the plugin.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

corster

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 0
  • CiviCRM version: CiviCRM 4.0.x
  • CMS version: Joomla 1.7.x
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 12, 2011, 08:15:46 pm
Here is our exact configuration.

Two Memberships:
1)  Registered User
2)  CORSA Member

These memberships allow for a public, registered, and CORSA Member hierarchy.  The public user can view public information.  The Registered user can comments, rate, and interact with CORSA Members that post classifieds for example.  CORSA Members are the only user type that is allowed to post new classifieds, photos in the gallery, download member-only PDFs, etc.

To accomplish "Registerd User" in CiviCRM, we have a created the Membership Type:  Site Registration.  We've also created a seperate page to handle just "Registered Users" joining the site.

Because we have two a contribution forms, using the Expired Contribution Page redirect ia not an option.  If you believe this senario would be better supported, by your current plugin, by adding all Membership Types to one contribution page, we could do that.  I'm not sure if there are any down-sides to this however.

Please let us know how we should proceed.

Thanks!
« Last Edit: August 12, 2011, 08:18:03 pm by corster »
Curtis

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 12, 2011, 09:57:21 pm
so here's the thing --
the whole point of that plugin is to block access if the user doesn't have a current membership. all the other settings are subservient to that first criteria. if you don't have a current membership -- we don't really need to worry about other ACL group settings.

so if a user tries to login, doesn't have a current membership and thus is rejected, what do we do?
we have to block them so that they can't gain access. but after doing that, we provide two options -- redirect to a normal menu item, where you do whatever, or redirect to a contrib page with the special behavior to increase the likelihood of a smooth renewal.

i guess one additional potential feature would be to alter their group level and proceed with the login. i suppose you could use that to give them low level access and then redirect to a desired page. in your use case, you'd still need to control redirection to the respective contrib page. I'm not sure you'd gain much over the current contrib page redirection behavior.

bottom line is that you want to block/control access, but also steer in the desired direction.
personally, i would create a new contrib page that is stripped down and contains all the renewal options. maybe not ideal, but i think it's the easiest way to facilitate renewal in this scenario.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

corster

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 0
  • CiviCRM version: CiviCRM 4.0.x
  • CMS version: Joomla 1.7.x
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 15, 2011, 06:50:05 am
Hello,


Wanted to follow-up on this issue.  We've move to using a single Contribution form that has resolved the initial issue.  However, we are experiencing another issue.

Once a user has completed the registration (with any type of membership level), they are supposed to get an account activation email from the Joomla system.  This is simply not happening.  The user does get the receipt from CiviCRM, but not an activation email.  This means they are blocked from logging in.  We recall this was working at one time.  Can someone let us know if this might be a bug, or if we are missing a setting somewhere?

Thank you!
Curtis

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 15, 2011, 07:16:18 am
it is a bug, unfortunately.
it's been patched here: http://issues.civicrm.org/jira/browse/CRM-8634

and will be in the next revision release of 4.x
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

corster

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 0
  • CiviCRM version: CiviCRM 4.0.x
  • CMS version: Joomla 1.7.x
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 15, 2011, 07:45:35 am
Thank you!

Is there an easy way to apply this patch?  I see there are two text files.  I've never had to patch files before and can't wait for 4.0.6.


Thanks!
Curtis

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 15, 2011, 08:17:22 am
basically the entire createJoomlaUser function was rewritten (i did more than just fix the activation issue -- i updated/improved how we handle the user creation).

so you can just copy the function (or entire file) to your version of the file:
https://fisheye2.atlassian.com/browse/~raw,r=35671/CiviCRM/branches/v4.0/CRM/Core/BAO/CMSUser.php#r35671

the second patch is more trivial. it improves how we construct the name value in the j user.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

corster

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 0
  • CiviCRM version: CiviCRM 4.0.x
  • CMS version: Joomla 1.7.x
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 15, 2011, 09:15:54 am
Thank you, thank you!

I have applied the patch and it's working agian.  Can't thank your team enough.

Curtis

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Critical: CiviAuth Plugin Expired Status Not Working
August 15, 2011, 09:32:44 am
i'm not actually on the official team.  ;)

just part of the development community -- the unofficial team.
you'll find the civicrm community has a lot of community-developers contributing back to help improve the software.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Critical: CiviAuth Plugin Expired Status Not Working

This forum was archived on 2017-11-26.