How to clear sensitive memory in JavaScript?

后端 未结 3 1006
情话喂你
情话喂你 2021-01-06 02:59

I have a login form for a user to type his/her password. This form is bound to an AngularJS model. Suppose that in the corresponding controller the user-given password is av

3条回答
  •  鱼传尺愫
    2021-01-06 03:31

    If this is a real risk for your app, your only real choice is to create a page for login that is separate from the application.

    You can use a standard login form to submit the password, the response will force the browser to fetch a new page, and all existing memory with a password is ignored.

提交回复
热议问题