Skip to content

Commit e91a1b3

Browse files
joshtrichardsbackportbot[bot]
authored andcommitted
fix(encryption): Clicking default module in UI sets bogus value
Fixes #44532 Likely fixes #43123 Signed-off-by: Josh <[email protected]> Signed-off-by: nextcloud-command <[email protected]> [skip ci]
1 parent 7b44589 commit e91a1b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/settings/src/components/Encryption.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,9 @@ export default {
137137
key,
138138
})
139139
140-
const stringValue = value ? 'yes' : 'no'
141140
try {
142141
const { data } = await axios.post(url, {
143-
value: stringValue,
142+
value: value,
144143
})
145144
this.handleResponse({
146145
status: data.ocs?.meta?.status,
@@ -157,7 +156,7 @@ export default {
157156
},
158157
async enableEncryption() {
159158
this.encryptionEnabled = true
160-
await this.update('encryption_enabled', true)
159+
await this.update('encryption_enabled', 'yes')
161160
},
162161
async handleResponse({ status, errorMessage, error }) {
163162
if (status !== 'ok') {

0 commit comments

Comments
 (0)