Skip to content

Commit

Permalink
Merge pull request #1687 from fdm-monster/fix/adjust-printer-api-key-…
Browse files Browse the repository at this point in the history
…43-length-max

Fix/adjust printer api key 43 length max
  • Loading branch information
davidzwa authored Nov 11, 2024
2 parents 2d5f24e + eadd2d8 commit bc5c000
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions RELEASE_NOTES.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release notes

## Client 11/11/2024 1.6.8

Fixes:

- Printer dialog: api key of 43 length should be allowed since OctoPrint 1.10.3

## Client 04/11/2024 1.6.7
Fixes:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fdm-monster/client",
"version": "1.6.7",
"version": "1.6.8",
"author": "David Zwart",
"license": "AGPL-3.0-or-later",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
v-model="formData.apiKey"
:counter="apiKeyRules.length"
class="ma-1"
hint="User or Application Key only (Global API key will fail)"
hint="User or Application Key with 32 or 43 characters (Global API key will fail)"
:label="formData.printerType === 1 ? 'API Key (optional)' : 'API Key (required)*'"
persistent-hint
required
Expand Down
2 changes: 1 addition & 1 deletion src/shared/app.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface AppConstants {

export const generateAppConstants = (): Readonly<AppConstants> =>
Object.freeze({
apiKeyLength: 32,
apiKeyLength: 43,
maxPort: 65535,
maxPrinterNameLength: 25,
maxPrinterGroupNameLength: 30, // Doesn't exist on backend
Expand Down

0 comments on commit bc5c000

Please sign in to comment.