mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
[PR #540] [MERGED] refactor: Replace create-one-time-access-token script with in-app functionality (v1.0) #756
Reference in New Issue
Block a user
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/pocket-id/pocket-id/pull/540
Author: @ItalyPaleAle
Created: 5/17/2025
Status: ✅ Merged
Merged: 5/18/2025
Merged by: @stonith404
Base:
v1.0.0← Head:one-time-at-go📝 Commits (3)
afd1334refactor: Replace create-one-time-access-token script with in-app functionality (v1.0)c92110fMerge branch 'v1.0.0' of https://github.com/pocket-id/pocket-id into one-time-at-goddd6886Move NewOneTimeAccessToken to the user_service file📊 Changes
8 files changed (+132 additions, -136 deletions)
View changed files
📝
Dockerfile(+1 -2)📝
backend/cmd/main.go(+24 -1)📝
backend/internal/bootstrap/bootstrap.go(+1 -1)📝
backend/internal/bootstrap/db_bootstrap.go(+1 -1)➕
backend/internal/cmds/one_time_access_token.go(+81 -0)📝
backend/internal/model/user.go(+1 -0)📝
backend/internal/service/user_service.go(+23 -14)➖
scripts/create-one-time-access-token.sh(+0 -117)📄 Description
As discussed here: https://github.com/pocket-id/pocket-id/pull/533#discussion_r2093286087
Removes the create-one-time-access-token.sh script and embeds the functionality within the Go binary.
It can now be invokes as
pocket-id one-time-access-token <user name or email>.This helps because:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.