mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix FileSystemScanner.kt which would return Series with no books
added test user
This commit is contained in:
parent
6b0d849d25
commit
b16d66a7b1
2 changed files with 3 additions and 1 deletions
|
|
@ -24,7 +24,8 @@ class FileSystemScanner(
|
|||
name = it.nameWithoutExtension,
|
||||
url = it.toURI().toURL()
|
||||
)
|
||||
} ?: return@mapNotNull null
|
||||
}
|
||||
if (books.isNullOrEmpty()) return@mapNotNull null
|
||||
Serie(
|
||||
name = dir.name,
|
||||
url = dir.toURI().toURL(),
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ class SecurityConfiguration : WebSecurityConfigurerAdapter() {
|
|||
override fun configure(auth: AuthenticationManagerBuilder) {
|
||||
auth.inMemoryAuthentication()
|
||||
.withUser("admin").password("{noop}admin").roles("ADMIN", "USER")
|
||||
.and().withUser("user").password("{noop}user").roles("USER")
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
|
|
|||
Loading…
Reference in a new issue