I want to use the same domain site for login authentication in the system I'm currently creating.
I was able to confirm that the login information is correct using Ajax, and I'm using HTTPS communication. But no matter how much I use HTTPS, I don't want to send my password in plain text. I want to send it encrypted so that it can be compounded with .
The system that verifies your login information is .NET, so you have to be able to compound there.
I also don't know if it's common to encrypt passwords even when using HTTPS communication.
login.js
var app = new Vue({
el: "#app",
data: {
url: "https://********",
user: "",
password: ""
},
methods: {
login: function () {
//I want to encrypt it here.
axios.post(this.url, {
user: this.user,
password: this.password
})
.then(function (response) {
// alert('OK');
// alert(response);
console.log(response);
})
.catch(function (error) {
alert('NO');
// alert(error);
});
}
}
})