Hi, this module is wonderful... it does exactly what I needed as I'm developing a custom RSVP-by-email module, where users can click a yes or no link in an email, and it logs them in and registers their RSVP.
However, I just noticed that whenever a one-time login link is used from this module, the user gets the message "You have just used your one-time login link.". For my use, I really don't want that message there, since my users aren't thinking of the usage of the link in that sense... I'm just wanting to use this module for its API.
I know how to just remove this from your code, but for future updates, I was wondering if you'd consider either removing this behavior, or making it optional.
Thanks!
Comments
Comment #1
danielb commentedI think configuration is too much, but I would consider adding a function to put the messages through that allows you to alter and remove them:
You can already change the text with string translate, but this will allow you to set the $msg to NULL and prevent it displaying altogether...
Although now that I think of it... you don't need this at all... I'll get back to you with another idea.
Comment #2
danielb commentedThe messages are set right before a drupal_goto() which invokes hook_exit()
So you could remove the message like this:
And there are probably other ways to do it, but that's the one that popped into my head.
I just think your use-case is too rare to implement configuration, etc.. for it.
Of course you can always just replace that text with your own using the module: http://drupal.org/project/stringoverrides
Comment #4
John Carbone commentedThis module seems promising as one approach to solving this, although I haven't tried it. http://drupal.org/project/disable_messages/
This module basically hijacks the theme_status_messages function which is another approach to solving this as well.
Minor improvement on #2. I had something very similar in hook_init but I must have been hitting some limitations of that function because the same code didn't always work in all situations. The version below seems to work perfectly though.
Anyway, hope this helps someone out.
Comment #5
nickau commentedHi
I am using this module, I am having an issue, when user clicks forget your password , then system sends a new email with link to login, when user clicks the link it gives below message, but password and new password links are disabled.
Can someone please assist?
I want the ability of user to change password.
ou have just used your one-time login link. It is no longer necessary to use this link to log in. Please change your password