yes, but I'm not sending the signature, am I?

-Jim


On Wed, Nov 6, 2013 at 1:22 PM, Niphlod <[email protected]> wrote:

> beware that if the session is renewed (the random uuid changes between
> when you send the link and when the user accesses the page) the signature
> changes.
>
>
> On Wednesday, November 6, 2013 7:31:28 PM UTC+1, Jim S wrote:
>
>> Yes, it does require you to login if you are not logged in.  If not
>> logged in it takes you to the login page before issuing the 'not
>> authorized' even though I'm logging in...
>>
>> In maintenance.py:
>>
>> @auth.requires_login()
>> def tickets():
>> .....
>>
>> -Jim
>>
>>
>>
>>
>> On Wed, Nov 6, 2013 at 12:28 PM, Richard Vézina <[email protected]>wrote:
>>
>>> Did you decorate your tickets function?
>>>
>>> @auth.requires_login()
>>>
>>> Richard
>>>
>>>
>>> On Wed, Nov 6, 2013 at 1:10 PM, Jim S <[email protected]> wrote:
>>>
>>>> I'm sending an email with a link back to an edit page on SQLFORM.grid
>>>> like this:
>>>>
>>>>     ticket = db.ticket(ticketId)
>>>>
>>>>     subject = 'Ticket %s - %s' % (ticket.ticketId, ticket.summary)
>>>>     user = db.auth_user(ticket.assignedId)
>>>>     to = user.email
>>>>
>>>>     message = '<html>%s has assigned to %s to you.<br /><br />-----<br
>>>> /><br />%s</html>' % (auth.user.first_name, A('SideboardHR Ticket %s' %
>>>> (ticket.ticketId), _href=URL('maintenance','tickets',
>>>> args=['edit','ticket',ticket.ticketId], host=True,scheme=True)),
>>>>
>>>> ticket.description)
>>>>     mail.send(to=[to],subject=subject,message=message)
>>>>
>>>> When I click on the generated link it get an alert saying 'not
>>>> authorized' regardless of whether or not I'm already logged in or not.
>>>>
>>>> How can I setup my link so it will take me there once I'm logged in?
>>>>
>>>> -Jim
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/web2py/YhzviZbdwW0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/YhzviZbdwW0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to