mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-15 12:06:51 +00:00
added postgresql support for broken functions
This commit is contained in:
@@ -18,7 +18,8 @@ const setupDefaultUser = () => {
|
||||
.select('id')
|
||||
.where('is_deleted', 0)
|
||||
.then((row) => {
|
||||
if (!row.length || !row[0].id) {
|
||||
if (row.length === 0) {
|
||||
|
||||
// Create a new user and set password
|
||||
let email = process.env.INITIAL_ADMIN_EMAIL || 'admin@example.com';
|
||||
let password = process.env.INITIAL_ADMIN_PASSWORD || 'changeme';
|
||||
|
||||
Reference in New Issue
Block a user