Skip to content

Commit

Permalink
fix login and add skip login button
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Feb 24, 2023
1 parent 41f367a commit 0e01280
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/AuthComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class AuthComponent extends React.Component<{
url={url}
onAuth={(credentials, author) => {
onAuth(Git, credentials, author)
this.setState(state => ({...state, authenticated: true}))
}}/>
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/html/AuthDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ class AuthDialog extends React.Component<{
}}>
Login
</button>
<button type="button"
className="btn btn-outline-primary"
onClick={() => {
onAuth({username: '', password: ''}, {name: '', email: ''})
}}>
Skip
</button>
</div>
</div>
}
Expand Down

0 comments on commit 0e01280

Please sign in to comment.