mirror of
https://github.com/filegator/filegator.git
synced 2025-08-20 06:04:08 +02:00
docs upd, passwd
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
## User roles
|
## User roles
|
||||||
|
|
||||||
There are 3 different user roles:
|
There are 3 different user roles:
|
||||||
- Admin (for user management)
|
- Admin (for user and file management)
|
||||||
- User (regular, logged in user)
|
- User (regular, logged in user)
|
||||||
- Guest (anonymous, not logged in)
|
- Guest (anonymous, not logged in)
|
||||||
|
|
||||||
|
|
||||||
## User permissions
|
## User permissions
|
||||||
|
|
||||||
There are 6 different user permissions you can assign to each user:
|
There are 6 different user permissions admin can assign to each user:
|
||||||
|
|
||||||
- Read (user can browse and list files and folders)
|
- Read (user can browse and list files and folders)
|
||||||
- Write (user can copy, move, rename, and delete files)
|
- Write (user can copy, move, rename, and delete files)
|
||||||
@@ -26,3 +26,24 @@ Guest account is predefined account and it is disabled by default since no permi
|
|||||||
|
|
||||||
Admin can enable Guest account which will allow everyone to interact with the repository based on the Guest account permissions.
|
Admin can enable Guest account which will allow everyone to interact with the repository based on the Guest account permissions.
|
||||||
|
|
||||||
|
## Resetting Admin's password
|
||||||
|
|
||||||
|
If you forgot your admin password you can follow these steps to reset it:
|
||||||
|
|
||||||
|
- Backup your current users file ```/private/users.json``` to a safe place
|
||||||
|
- Copy blank template ```/private/users.json.blank``` over ```/private/users.json``` or simply refresh your browser
|
||||||
|
- Login as admin with default credentials ```admin/admin123```
|
||||||
|
- Put your original users file back to ```/private/users.json``` replacing the template
|
||||||
|
- Since you are now logged in as admin, simply go to users page and change your password
|
||||||
|
- Log out and try to login with the new password
|
||||||
|
|
||||||
|
Note: If you're using database Auth adapter then simply run this query to set default password back to ```admin123```:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
UPDATE `users`
|
||||||
|
SET `password` = '$2y$10$Nu35w4pteLfc7BDCIkDPkecjw8wsH8Y2GMfIewUbXLT7zzW6WOxwq'
|
||||||
|
WHERE `username` = 'admin';
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
<form @submit="save">
|
<form @submit="save">
|
||||||
<b-field :label="lang('Old password')" :type="formErrors.oldpassword ? 'is-danger' : ''" :message="formErrors.oldpassword">
|
<b-field :label="lang('Old password')" :type="formErrors.oldpassword ? 'is-danger' : ''" :message="formErrors.oldpassword">
|
||||||
<b-input v-model="oldpassword" @keydown.native="formErrors.oldpassword = ''" required></b-input>
|
<b-input v-model="oldpassword" @keydown.native="formErrors.oldpassword = ''" password-reveal required></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
<b-field :label="lang('New password')" :type="formErrors.newpassword ? 'is-danger' : ''" :message="formErrors.newpassword">
|
<b-field :label="lang('New password')" :type="formErrors.newpassword ? 'is-danger' : ''" :message="formErrors.newpassword">
|
||||||
|
Reference in New Issue
Block a user