mirror of
https://github.com/filegator/filegator.git
synced 2025-08-06 22:46:43 +02:00
new config guest_redirection added
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
## Upcoming...
|
||||
|
||||
* New config: 'guest_redirection' (useful for external auth adapters)
|
||||
* More css classes so the elements can be easily hidden (e.g. add_to_head style)
|
||||
|
||||
## 7.3.5 - 2020-04-18
|
||||
|
||||
* Translations added: Polish, Italian
|
||||
|
@@ -16,6 +16,7 @@ return [
|
||||
'default_archive_name' => 'archive.zip',
|
||||
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
|
||||
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
|
||||
'guest_redirection' => '', // useful for external auth adapters
|
||||
],
|
||||
|
||||
'services' => [
|
||||
|
@@ -23,6 +23,7 @@ Note: if you've made a mistake in configuration file (forgot to close a quote?)
|
||||
'default_archive_name' => 'archive.zip',
|
||||
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
|
||||
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
|
||||
'guest_redirection' => '', // useful for external auth adapters
|
||||
],
|
||||
```
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="!$store.state.config.guest_redirection">
|
||||
<a v-if="can('read')" id="back-arrow" @click="$router.push('/')">
|
||||
<b-icon icon="times" />
|
||||
</a>
|
||||
@@ -48,6 +48,10 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.$store.state.config.guest_redirection) {
|
||||
window.location.href = this.$store.state.config.guest_redirection
|
||||
return
|
||||
}
|
||||
this.$refs.username.focus()
|
||||
},
|
||||
methods: {
|
||||
|
@@ -15,6 +15,7 @@ return [
|
||||
'default_archive_name' => 'archive.zip',
|
||||
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
|
||||
'date_format' => 'YY/MM/DD hh:mm:ss',
|
||||
'guest_redirection' => '', // useful for external auth adapters
|
||||
],
|
||||
|
||||
'services' => [
|
||||
|
@@ -7,6 +7,7 @@
|
||||
"upload_max_size": 104857600,
|
||||
"upload_chunk_size": 1048576,
|
||||
"upload_simultaneous": 3,
|
||||
"default_archive_name": "archive.zip"
|
||||
"default_archive_name": "archive.zip",
|
||||
"guest_redirection": ""
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user