# How to pass login credentias?

**URL:** <https://forum.pinegrow.com/t/how-to-pass-login-credentias/996>\
**Category:** Feature Request\
**Created:** [June 12, 2017, 3:00am UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996 "2017-06-12T03:00:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lexcorp](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lexcorp](https://forum.pinegrow.com/u/lexcorp)\
**Post date:** [June 12, 2017, 3:00am UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996/1 "2017-06-12T03:00:30Z")

</div>

Hello,

I’m running a web application in a local environment with Apache, PHP and MySQL, when I open the application from Pinegrow it shows me the login page of the application, but it does not allow me to edit other pages since it asks for user credentials and password and Shows me the message Invalid use of your user ID.

How to pass user and password?

How to continue to other pages? How to pass user and password and click to redirect to other pages?

 ![](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/1X/aa213ff4f2ec673a32579f1aa327009d0c3183ae.JPG)

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [June 12, 2017, 12:16pm UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996/2 "2017-06-12T12:16:28Z")

</div>

@lexcorp if it’s a local environment can you just remove the code that requires login authentication and then it would allow you to access pages.

---

<div class="post-metadata">

**Author:** ![Terry44](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/terry44/32/175_2.png) [@Terry44](https://forum.pinegrow.com/u/Terry44)\
**Post date:** [June 20, 2017, 8:10am UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996/3 "2017-06-20T08:10:11Z")

</div>

The suggestion @Rob gave is good. I developed a custom CMS and created a switch that allows me to put the site into “debug mode” which disables the credential requirements for the pages.

Another thing you can do is just use your web browser and save the pages out and then load those into Pinegrow directly.

I have done both of these and it works for me in my process. I also am using a custom Apache, MySQL, PHP development environment. Not WAMP or other prepackaged environments. Using Pinegrow with it is really nice.

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [June 20, 2017, 8:26pm UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996/4 "2017-06-20T20:26:04Z")

</div>

@Terry44 I like the idea of a switch to allow you to debug.

---

<div class="post-metadata">

**Author:** ![trka](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/trka/32/651_2.png) [@trka](https://forum.pinegrow.com/u/trka)\
**Post date:** [June 21, 2017, 1:26pm UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996/5 "2017-06-21T13:26:47Z")

</div>

Agree with @Terry44, with one little change-up…  
Rather than **remove** the login code (potentially dangerous if that leaked to production):

- in your dev site’s .htaccess (or similar), set an Environment Variable for `APP_ENV="dev"` (in .htaccess, this is `SetEnv APP_ENV "dev"`)
- in your app, provide the code that handles something along the lines of:

```auto
let dev = getenvironmentvariable('APP_ENV');
if(dev){//set authentication without showing the login form}
else{//show the login form}

```

This is a little more secure than pruning and adding-back the login form, and it opens you up to do a lot of other environment-specific stuff (custom configs, custom behaviors, etc…)

---

<div class="post-metadata">

**Author:** ![bl-nk](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/bl-nk/32/1381_2.png) [@bl-nk](https://forum.pinegrow.com/u/bl-nk)\
**Post date:** [September 18, 2018, 12:57pm UTC](https://forum.pinegrow.com/t/how-to-pass-login-credentias/996/6 "2018-09-18T12:57:25Z")

</div>

Edit: Apologies for bumping such an old topic. Didn’t want to duplicate what already existed.

This would be a great feature. I’m primarily a backend developer and build applications with fairly elaborate authorization and authentication functionality. Disabling the security (even in a local environment) is a big undertaking.

Would be great if we could browse through sites via Pinegrow to get directly to pages we need to modify. Of course we can visit the site and save pages local. Would be nice not having to leave Pinegrow when I just need to modify a secured area.
