sending username and password through email after user registration in web application

后端 未结 12 1103
夕颜
夕颜 2020-12-09 18:20

What is your opinion on sending the username and password to their email address when they register on our website..this way if they forget the password in the future, they

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 19:10

    I build an Web Application to send sensitive information by email. It's not UI perfect but it's really secure and working very fine.

    There an outlook plugin, API to connect external website and the WebSite.

    The concept is the message received in your mailbox are not in clear text. It's an HTML email with a link. You need to click the link to access the content of the email. When it's access one time, the message are destroy.

    The message are stock in a crypted database on our side. You can configure a password that are know only by the two part to open the message online, or receive an password (Random 6 number) by SMS.

    It's very simple to implement by API.

    There is a sample

    // https://www.secure-exchanges.com/API.aspx

     List files = new List();
      files.Add(originalFilePath);
      string input = $"{body}";
      string inputSubject = $"Your {subject}";
      SendMessageAnswer answer = MessageHelper.EncryptMessage(new EncryptMessageArgs(GlobalSettings.bindingSecure, GlobalSettings.serial, GlobalSettings.ApiUser, GlobalSettings.ApiPassword, input, inputSubject + " - to open", recipient1, "", password, null, SecureExchangesSDK.SecureExchanges.SendMethodEnum.onlyEmail, false, true, true, "fr-CA", 1, 5)
      {
        FilesPath = files
      });
      if (answer == null || answer.Status != 200)
      {
        throw new Exception($"Impossible d'envoyé un message : {methodName}");
      }
    

提交回复
热议问题