Coder Social home page Coder Social logo

Using another email about selfmailbot HOT 10 CLOSED

f213 avatar f213 commented on May 27, 2024
Using another email

from selfmailbot.

Comments (10)

grepto avatar grepto commented on May 27, 2024 1

I think we should add another command to reset the email and re-confirm the user, so i will reopen this issue.

What is the point of having two different commands to change the e-mail address depending on whether or not the user has received any messages? It's a modality.

I suggest we use one command to change the address.

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

Currently there is no option to reset the email. I think we should implement a command for that, like /reset — it should completely drop the user record from the db.

Feel free to make a PR for this :-)

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

@fash1k
The command is implemented.

Just type /reset and the bot will ask you for the new email

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

Unfortunately, reset command works only for non-confirmed users, e.g. when you did not received any email from the bot.

I think we should add another command to reset the email and re-confirm the user, so i will reopen this issue.

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

@grepto This issue might be a challenge for you :-)

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

I suggest we use one command to change the address.

I completely agree with you

from selfmailbot.

grepto avatar grepto commented on May 27, 2024

I broke my head thinking why it should be challenge. Issue look simple. I guess we'll just have to add one more command handler for /reset. This handler should not have any filters.

Something like this

dispatcher.add_handler(CommandHandler('reset', reset_email))

Maybe there's some other reason why we can't reset email for users to whom bot has already sent mail?

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

Maybe there's some other reason why we can't reset email for users to whom bot has already sent mail?

We should reset user's confirmation status during email reset — otherwise there will be an ability to confirm an email, change it, and send emails to the new, unconfirmed, one.

from selfmailbot.

grepto avatar grepto commented on May 27, 2024

We should reset user's confirmation status during email reset

Agree. That's why I made a reset confirmation status for user when he use /reset

from selfmailbot.

f213 avatar f213 commented on May 27, 2024

The /reset command is usable in production now. Thank you @grepto!

from selfmailbot.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.