You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var passwordProtected = hexo.config.admin && hexo.config.admin.username;
// verify that correct config options are set.
if (passwordProtected) {
if (!hexo.config.admin.password_hash) {
console.error('[Hexo Admin]: config admin.password_hash is requred for authentication');
passwordProtected = false;
} else if (hexo.config.admin.password_hash.length <= 32) {
throw new Error('[Hexo Admin]: the provided password_hash looks like an md5 hash -- hexo-admin has switched to use bcrypt; see the Readme for more info.')
}
if (!hexo.config.admin.secret) {
console.error('[Hexo Admin]: config admin.secret is requred for authentication');