Iirr www server name is used only for setup and not in repo

I would use environ[ server name ] as you suggest

Otherwise seems fine

- I am likely to get kids in bed by eight so get online soon after

Paul Brian
07540 456 115
paul@mikadosoftware.com
@lifeisstillgood
pbrian.mikadosoftware.com

On 12 Jul 2013, at 17:36, Michael Mulich <notifications@github.com> wrote:

In rhaptos2/repo/auth.py:

> @@ -426,6 +428,18 @@ def apply_cors(resp):
>      return resp
>
>
> +def login():
> +    """Redirect to cnx-user login."""
> +    user_service_url = get_app().config['cnx-user-url']
> +    came_from = request.environ.get('HTTP_REFERER', None)
> +    if came_from is None:
> +        came_from = "http://{}/js/".format(get_app().config['www_server_name'])

@lifeisstillgood <https://github.com/lifeisstillgood> Is this right? I
don't know what the value of www_server_name is suppose to look like. I was
assuming that the scheme (http) is not part of the value.

—
Reply to this email directly or view it on
GitHub<https://github.com/Connexions/rhaptos2.repo/pull/156/files#r5168996>
.

-- 


www.mikadosoftware.com

See your software improve with every change.