Remove user passwords (#539)

* Remove user passwords

Co-authored-by: Jonas Plum <git@jonasplum.de>
This commit is contained in:
Jonas Plum
2022-10-22 15:12:37 +02:00
committed by GitHub
parent fb69a1a07b
commit 6756ce5426
13 changed files with 27 additions and 101 deletions
-18
View File
@@ -2186,24 +2186,12 @@ export interface User {
* @memberof User
*/
'roles': Array<string>;
/**
*
* @type {string}
* @memberof User
*/
'salt'?: string;
/**
*
* @type {string}
* @memberof User
*/
'sha256'?: string;
/**
*
* @type {string}
* @memberof User
*/
'sha512'?: string;
}
/**
*
@@ -2297,12 +2285,6 @@ export interface UserForm {
* @memberof UserForm
*/
'id': string;
/**
*
* @type {string}
* @memberof UserForm
*/
'password'?: string;
/**
*
* @type {Array<string>}
+5
View File
@@ -130,6 +130,11 @@ export default Vue.extend({
components: {
VueCropper
},
watch: {
"userdata": function () {
this.editoruserdata = this.userdata;
},
},
methods: {
saveUserData: function() {
this.$emit("save", this.editoruserdata);
+4 -3
View File
@@ -17,11 +17,12 @@
<span v-if="user.apikey">API Key</span>
<span v-else>User</span>
</h2>
<i>Users can only be created via OIDC.</i>
<v-form>
<v-btn-toggle v-model="user.apikey" mandatory dense>
<!--v-btn-toggle v-model="user.apikey" mandatory dense>
<v-btn :value="false">User</v-btn>
<v-btn :value="true">API Key</v-btn>
</v-btn-toggle>
</v-btn-toggle-->
<v-text-field label="ID" v-model="user.id" class="mb-2" :rules="[
v => !!v || 'ID is required',
v => (v && v.length < 254) || 'ID must be between 1 and 254 characters',
@@ -58,7 +59,7 @@
<span v-if="user.apikey">(API Key)</span>
</h2>
<v-text-field v-if="!user.apikey" label="New Password (leave empty to keep)" v-model="user.password" hide-details class="mb-4"></v-text-field>
<!--v-text-field v-if="!user.apikey" label="New Password (leave empty to keep)" v-model="user.password" hide-details class="mb-4"></v-text-field-->
<v-checkbox v-if="!user.apikey" label="Blocked" v-model="user.blocked" hide-details class="mb-4"></v-checkbox>
<v-select multiple chips v-if="!user.apikey" label="Roles" v-model="user.roles" :items="['analyst', 'engineer', 'admin']"></v-select>