Skip to content
Snippets Groups Projects

Do not trust `v-model` in login input, for password manager's autofill

Open Xnuk Shuman requested to merge xnuk/pleroma-fe:password-autofill-keepass-tusk into develop
2 files
+ 6
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -11,7 +11,6 @@ library.add(
const LoginForm = {
data: () => ({
user: {},
error: false
}),
computed: {
@@ -55,13 +54,16 @@ const LoginForm = {
}
this.error = false
const username = this.$refs.usernameInput.value
const password = this.$refs.passwordInput.value
oauthApi.getOrCreateApp(data).then((app) => {
oauthApi.getTokenWithCredentials(
{
...app,
instance: data.instance,
username: this.user.username,
password: this.user.password
username,
password
}
).then((result) => {
if (result.error) {
Loading