When I am entering admin-login creds i have an error "Invalid Login"
When I am entering admin-login creds i gets admin page
Go to GitHub Repository https://github.com/Requarks/wiki
In section "Cloud Install" click "Deploy to Heroku"
Fullfill form
Go to Login page
I have try typing email from Config Vars, many different combinations. Including admin/admin and other combinations. I also have try run node wiki configure via heroku-cli. But get an error "ENOENT no such file or directory, stat '/app/assets/favicon.ico'".
The default password is admin123, as specified on the install page.
Which install page and where does it say admin123? I've read the docs and searched for this password too and the only one I can find is MartyMcFly88.
I installed via the Deploy to Heroku button and admin123 does indeed work with my email address however I only found that out from issue...

Not the most obvious I agree, but it's there.
Wiki.js 2.0 will no longer rely on environment variables to create the admin account so this will no longer be an issue soon.
I experienced the same issue too...
I think it's better to add this to documentation.
But what is the default username?!
It's the WIKI_ADMIN_EMAIL ENV for the Dockerfile.
simple workaround for local installation on the first run is to:
set WIKI_ADMIN_EMAIL environment var
and use this diff
diff --git a/server/libs/auth.js b/server/libs/auth.js
index c9b7e12..a795ca7 100644
--- a/server/libs/auth.js
+++ b/server/libs/auth.js
@@ -280,7 +280,7 @@ module.exports = function (passport) {
})
}
}).then(() => {
- if (process.env.WIKI_JS_HEROKU) {
+ if (process.env.WIKI_ADMIN_EMAIL) {
return db.User.findOne({ provider: 'local', email: process.env.WIKI_ADMIN_EMAIL }).then((c) => {
if (c < 1) {
// Create root admin account (HEROKU ONLY)
If wiki db already exists: drop it and start wiki again.
Also workaround is to create admin user, based on info in auth.js
Most helpful comment
Not the most obvious I agree, but it's there.
Wiki.js 2.0 will no longer rely on environment variables to create the admin account so this will no longer be an issue soon.