Skip to content

Commit

Permalink
ExperimentalAuth: setup skeleton for signIn()
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed Oct 11, 2024
1 parent 5d79efd commit 325b0b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/lib-panoptes-js/dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Panoptes.js dev app</h1>
id="login-form"
method="POST"
>
<input type="text" name="username" />
<input type="text" name="login" />
<br>
<input type="password" name="password" />
<br>
Expand Down
5 changes: 2 additions & 3 deletions packages/lib-panoptes-js/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ class App {
}

loginForm_onSubmit (e) {
console.log('+++ loginForm_onSubmit', e)
const formData = new FormData(e.target)
signIn(formData.get('login'), formData.get('password'))

experimentalAuth.signIn()

e.preventDefault()
return false
}
Expand Down
5 changes: 3 additions & 2 deletions packages/lib-panoptes-js/src/experimental-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ function broadcastEvent (eventType, args, _store) {
})
}

function signIn () {
console.log('1234')
function signIn (login, password) {
// TODO
console.log('+++ experimental auth client: signIn() ', login, password)
}

export {
Expand Down

0 comments on commit 325b0b1

Please sign in to comment.