Answers.Body: <p>As you are in Drupal, i recommend using the drupal module <a href="https://www.drupal.org/project/masquerade" rel="nofollow">masquerade</a> which let you act as if logged in as another user.</p>
  
  <p>Otherwise, with drush you could generate a one-time login for the user you want without sending an email. So from the command line, type : <code>drush uli user-name</code> and you will get a link that will log-in as the user <code>user-name</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-30T18:07:05.877Z
Answers.Text: Just to clarify, I am trying to replicate the bug on the demo server (demo.civicrm.org) which I don't assume I can drush into - or can i?
Answers.UserDisplayName: Sean MacGillivray
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-30T19:16:26.963Z
Answers.Text: oh, ok, i don't think you can do this. I recommend you create a clone of your production site or otherwise create your own demo site by installing a brand new civicrm with sample data in it.
Answers.UserDisplayName: samuelsov
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-30T17:52:42.893Z
Answers.LastActivityDate: 2016-05-30T17:52:42.893Z
Answers.UserDisplayName: samuelsov
Body: <p>I think I've encountered a veeeeeery use-case-specific bug with online user-driven  membership renewals and I'm trying to replicate it on the demo server to confirm. We're on drupal 7 and the issue pertains to users renewing their own on-behalf memberships as logged-in CMS users. The demo site is (rightly) nerfed from sending emails, so new drupal users never get their activation emails, so I can't find a way to fully create a new CMS user and log in as them to test. What's the best practice for doing this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-30T20:12:19.030Z
Comments.Text: what prevents you testing using the demo/demo user?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-01T12:39:10.090Z
Comments.Text: @petednz-fuzion I feel like I need to test with a user that does not have "administer CiviCRM" permission in drupal, as that's the use-case where I'm encountering the error. Sure I can renew someone as a CiviCRM admin, but the problem occurs when regular CMS users try to self-renew.
Comments.UserDisplayName: Sean MacGillivray
Tags: <civicontribute><civimember><contribution-page>
Title: best practices for demo-site replication of a membership bug?
ThreadText: # best practices for demo-site replication of a membership bug?
  
  (Asked by: username_0 on 2016-05-30)
  
  I think I've encountered a veeeeeery use-case-specific bug with online user-driven membership renewals and I'm trying to replicate it on the demo server to confirm. We're on drupal 7 and the issue pertains to users renewing their own on-behalf memberships as logged-in CMS users. The demo site is (rightly) nerfed from sending emails, so new drupal users never get their activation emails, so I can't find a way to fully create a new CMS user and log in as them to test. What's the best practice for doing this?
  
  **Tags:** civicontribute, civimember, contribution-page
  
  > **Comments:**
  > **username_1**: what prevents you testing using the demo/demo user?  
  > **username_0**: @petednz-fuzion I feel like I need to test with a user that does not have "administer CiviCRM" permission in drupal, as that's the use-case where I'm encountering the error. Sure I can renew someone as a CiviCRM admin, but the problem occurs when regular CMS users try to self-renew.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-05-30. Score: 1
  
  As you are in Drupal, i recommend using the drupal module [masquerade](https://www.drupal.org/project/masquerade) which let you act as if logged in as another user.
  
  Otherwise, with drush you could generate a one-time login for the user you want without sending an email. So from the command line, type : `drush uli user-name` and you will get a link that will log-in as the user `user-name`
  
  > **Comments:**
  > **username_0**: Just to clarify, I am trying to replicate the bug on the demo server (demo.civicrm.org) which I don't assume I can drush into - or can i?  
  > **username_2**: oh, ok, i don't think you can do this. I recommend you create a clone of your production site or otherwise create your own demo site by installing a brand new civicrm with sample data in it.  
  
  ---
  
  