Skip to content

Commit

Permalink
Revert OAuth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Moetto committed Apr 29, 2024
1 parent 789f1aa commit 8f78890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/components/Authentication.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ if (document.location.hash.split('&')[0].split('=')[0] === '#access_token'){
<div id="twitch">
<div v-if="!twitchAccesssToken">
<a :href=twitchUrl>Connect with Twitch</a>
<a href="https://api.dev.vauhtijuoksu.fi/login" referrerpolicy="unsafe-url"> login</a>
<form action="https://api.dev.vauhtijuoksu.fi/logout" method="post">
<button name="logout">logout</button>
</form>
</div>
</div>
<div id="login" class="no-login">
Expand Down
7 changes: 6 additions & 1 deletion src/components/Donations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ onMounted(()=> {
const markDonation = (id, readValue) => {
axios.patch(`${url.value}/donations/${id}`, {read: readValue}, { withCredentials: true })
axios.patch(`${url.value}/donations/${id}`, {read: readValue}, {
auth: {
username: localStorage.getItem('username'),
password: localStorage.getItem('password')
}
})
.then(() => {
let obj = donations.value.find(x => x.id === id);
let index = donations.value.indexOf(obj);
Expand Down

0 comments on commit 8f78890

Please sign in to comment.