Skip to content
Snippets Groups Projects
Commit b5aba2cc authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Link to docs when a non-admin user tries to log in

parent 0ac84426
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ export const beforeEachRoute = (to, from, next) => {
}).catch((err) => {
store.dispatch('FedLogOut').then(() => {
Message({
dangerouslyUseHTMLString: true,
message: err,
type: 'error',
duration: 7 * 1000
......
......@@ -89,7 +89,9 @@ const user = {
if (data.pleroma && data.pleroma.is_admin) {
commit('SET_ROLES', ['admin'])
} else {
reject('This user doesn\`t have admin rights. Try another credentials or run `MIX_ENV=prod mix pleroma.user set NICKNAME --admin`')
reject('<span>This user doesn\`t have admin rights. Try another credentials or see </span>' +
'<u><a target="_blank" href="https://docs.pleroma.social/backend/administration/CLI_tasks/user/#set-the-value-of-the-given-users-settings">docs</a></u>' +
'<span> to find out how to make this user an admin</span>')
}
commit('SET_NAME', data.username)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment