Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where can I change the length generate random password #324

Open
michal-broda opened this issue Apr 29, 2024 · 1 comment
Open

where can I change the length generate random password #324

michal-broda opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
question ux Related to user experience

Comments

@michal-broda
Copy link

Hi, I need to length random password. Can I do?

@onetimesecret onetimesecret self-assigned this Apr 30, 2024
@onetimesecret
Copy link
Owner

If you're running your own instance, you can modify this line to change the password length:

@secret_value = kind == :share ? params[:secret] : Onetime::Utils.strand(12)

If you're using onetimesecret.com, there's currently no setting to change the default length (12 chars).

@onetimesecret onetimesecret added question ux Related to user experience labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ux Related to user experience
Projects
Status: Triage
Development

No branches or pull requests

2 participants