looking at this again.... there is a validator that should prevent
it.
The problem is that you may have a record with blank email.
I modified the code in trunk to make validation more strict.

On Sep 10, 7:55 am, selecta <[email protected]> wrote:
> if the retrieve password form is submitted without a value web2py
> crashes
> is this intended?
>
> Traceback (most recent call last):
>   File "/home/fkrause/Dev/web2py/gluon/restricted.py", line 186, in
> restricted
>     exec ccode in environment
>   File "/home/fkrause/Dev/web2py/applications/pyMantis/controllers/
> default.py", line 178, in <module>
>   File "/home/fkrause/Dev/web2py/gluon/globals.py", line 96, in
> <lambda>
>     self._caller = lambda f: f()
>   File "/home/fkrause/Dev/web2py/applications/pyMantis/controllers/
> default.py", line 143, in user
>     return dict(form=auth())
>   File "/home/fkrause/Dev/web2py/gluon/tools.py", line 999, in
> __call__
>     return self.retrieve_password()
>   File "/home/fkrause/Dev/web2py/gluon/tools.py", line 1978, in
> retrieve_password
>     return self.request_reset_password(next,onvalidation,onaccept,log)
>   File "/home/fkrause/Dev/web2py/gluon/tools.py", line 1952, in
> request_reset_password
>     dict(key=reset_password_key)):
>   File "/home/fkrause/Dev/web2py/gluon/tools.py", line 312, in send
>     raise Exception('Target receiver address not specified')
> Exception: Target receiver address not specified

Reply via email to