GithubHelp home page GithubHelp logo

appid_fullcustom's People

Contributors

dotnsf avatar

Watchers

 avatar  avatar

appid_fullcustom's Issues

「パスワードリセット*」→「メール受信」→「パスワード変更*」の流れをカスタムUIで

*印の部分をカスタムUIで作りたい。

現行、「単純なパスワードリセット」は実現できている。カスタムUIのページでメールアドレスだけを指定してパスワードリセットをかけ、メールを受信して、カスタマイズ無しのパスワード変更ページで新しいパスワードを変更する、というもの。

また、カスタムUIで「メールアドレスと新しいパスワードを指定して変更する」ことも実現できている。ただこの方法は誰でもメールアドレスを指定してパスワードが変更できてしまうので、セキュリティ的にはよろしくない。

セキュリティ的な面も考慮すると、以下の3段階が必要:

  1. カスタムUIでメールアドレスを指定して「パスワードリセット」
  2. 指定したメールアドレスにパスワード変更用の URL 付きメールが送られる
  3. メールの URL をクリックすると、カスタムUIでパスワードを変更する画面になる

1 -> 2 自体はできているが、今の設計では 3 のカスタムページに繋がらない。2 でカスタム URL を指定してメールを送信する必要があるがその方法がわからない。この 2 で送られたメールのリンクをクリックすると「 1 で指定したメールアドレスのユーザーの」パスワードを変更するページに遷移する必要がある。どこかに 1 の情報を隠す必要がある。ejs のパラメータなど。

また 2 の URL は(メールを受信しなくても)推測できるものではまずい。1 を実行する際にユーザーのメールアドレスに加えて、ワンタイムパスワード的なものを一緒に送付して 2 の URL を作る必要がある。加えて、その URL をメール本文に含める必要がある。

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.