File tree Expand file tree Collapse file tree
example/test_app/templates/rest
passkeys/templates/passkeys Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 data : { "csrfmiddlewaretoken" : "{{ csrf_token }}" } ,
2323 success : async function ( data ) {
2424 window . state_token = data . state_token
25- user_data = await get_credential ( data . options , true )
25+ user_data = await get_credential ( data . options , false , true )
2626 if ( user_data . type == "password" ) {
2727 console . log ( user_data )
2828 alert ( "user is logging in with password, not passkey, forward to the " ) ;
Original file line number Diff line number Diff line change 3333 } ) . then ( function ( attestation ) {
3434 attestation [ "key_name" ] = $ ( "#key_name" ) . val ( ) ;
3535 return fetch ( '{% url ' passkeys :reg_complete ' %}' , {
36+ headers :{ 'X-CSRFToken' : "{{csrf_token}}" } ,
3637 method : 'POST' ,
3738 body : JSON . stringify ( publicKeyCredentialToJSON ( attestation ) )
3839 } ) ;
You can’t perform that action at this time.
0 commit comments