mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[PR #25] [MERGED] Add a way to view a user's details #497
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#497
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/25
Author: @nitnelave
Created: 7/5/2021
Status: ✅ Merged
Merged: 7/5/2021
Merged by: @nitnelave
Base:
main← Head:user_view📝 Commits (8)
b29e82bRemove outdated config samplec32c6b2Add a request message for user details2ebe312Add a method to get a single user's detailsda7239eAdd a route to server user detailsa799ef2Remove useless clonesfca7b04Implement per-user guards for the user details endpoint3458e83Propagate the admin status to the top component911df8eImplement client view for the user details📊 Changes
14 files changed (+320 additions, -57 deletions)
View changed files
📝
app/src/api.rs(+25 -5)📝
app/src/app.rs(+71 -22)📝
app/src/cookies.rs(+1 -1)📝
app/src/lib.rs(+1 -0)📝
app/src/login.rs(+5 -5)➕
app/src/user_details.rs(+90 -0)➖
lldap_config.toml(+0 -2)📝
model/src/lib.rs(+5 -0)📝
src/domain/handler.rs(+2 -0)📝
src/domain/sql_backend_handler.rs(+42 -0)📝
src/infra/auth_service.rs(+39 -11)📝
src/infra/tcp_api.rs(+38 -6)📝
src/infra/tcp_backend_handler.rs(+1 -0)📝
src/infra/tcp_server.rs(+0 -5)📄 Description
The new API endpoint "/api/user/<user_id>" returns the user's details, and is accessible by both admins and the user themselves.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.