Skip to content

Commit

Permalink
Mask password and make root CA optional (#408)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

Update password mask & root CA optionality.

## What are the changes implemented in this PR?

Update password mask & root CA optionality.
  • Loading branch information
lriuui0x0 authored Jun 11, 2021
1 parent e44e62b commit bef18fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Login/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>
<div class="row" v-if="isCluster">
<h1 class="label">Password:</h1>
<input class="input" v-model="password">
<input class="input" type="password" v-model="password">
</div>
<div class="row flex-end">
<loading-button v-on:clicked="connect()" :text="isCluster ? 'Connect to TypeDB Cluster' : 'Connect to TypeDB'" :loading="isLoading" className="btn login-btn"></loading-button>
Expand Down
4 changes: 3 additions & 1 deletion src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const initTypeDB = async (context, isCluster) => {
global.typedb = isCluster ?
await TypeDB.clusterClient(
[ServerSettings.getServerUri()],
new TypeDBCredential(ServerSettings.getUsername(), ServerSettings.getPassword(), ServerSettings.getRootCAPath()),
ServerSettings.getRootCAPath() ?
new TypeDBCredential(ServerSettings.getUsername(), ServerSettings.getPassword(), ServerSettings.getRootCAPath()) :
new TypeDBCredential(ServerSettings.getUsername(), ServerSettings.getPassword())
) :
TypeDB.coreClient(ServerSettings.getServerUri());
context.dispatch('loadDatabases');
Expand Down

0 comments on commit bef18fb

Please sign in to comment.