Skip to content

Commit bef18fb

Browse files
authored
Mask password and make root CA optional (#408)
## 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.
1 parent e44e62b commit bef18fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/Login/LoginPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</div>
5050
<div class="row" v-if="isCluster">
5151
<h1 class="label">Password:</h1>
52-
<input class="input" v-model="password">
52+
<input class="input" type="password" v-model="password">
5353
</div>
5454
<div class="row flex-end">
5555
<loading-button v-on:clicked="connect()" :text="isCluster ? 'Connect to TypeDB Cluster' : 'Connect to TypeDB'" :loading="isLoading" className="btn login-btn"></loading-button>

src/store/actions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export const initTypeDB = async (context, isCluster) => {
4444
global.typedb = isCluster ?
4545
await TypeDB.clusterClient(
4646
[ServerSettings.getServerUri()],
47-
new TypeDBCredential(ServerSettings.getUsername(), ServerSettings.getPassword(), ServerSettings.getRootCAPath()),
47+
ServerSettings.getRootCAPath() ?
48+
new TypeDBCredential(ServerSettings.getUsername(), ServerSettings.getPassword(), ServerSettings.getRootCAPath()) :
49+
new TypeDBCredential(ServerSettings.getUsername(), ServerSettings.getPassword())
4850
) :
4951
TypeDB.coreClient(ServerSettings.getServerUri());
5052
context.dispatch('loadDatabases');

0 commit comments

Comments
 (0)