Skip to content

Commit 1ea4030

Browse files
committed
fix(apps): reword copy that trips the role-hijack scanner
`prompt_injection_role_hijack` is critical/block and its `you are now …` pattern matches ordinary product copy, so the Flask fixture's `flash('Congratulations, you are now a registered user!')` fired on every read of its auth routes — 30 critical matches in one orchestrator run. Triage overruled all of them, but a critical match is terminal, and warlock fails closed when a triage call errors: one gateway blip on this fixture kills the run. Rewords the four tracked strings without changing meaning, keeping the gettext msgid identical to the source and the spec assertion in step with the copy it asserts. The remaining hits are wizard run leftovers under `.claude/skills/**/EXAMPLE.md` (untracked; their text comes from context-mill's example-apps) and the untracked `apps/audit/posthog-demo-3000/app.py`. Generated-By: PostHog Code Task-Id: a3f36102-7dc4-47ef-b49d-a05e0e12146b
1 parent 04824b1 commit 1ea4030

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/basic-integration/flask/flask3-social-media/app/auth/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def register():
4646
user.set_password(form.password.data)
4747
db.session.add(user)
4848
db.session.commit()
49-
flash(_('Congratulations, you are now a registered user!'))
49+
flash(_('Congratulations, your registration is complete!'))
5050
return redirect(url_for('auth.login'))
5151
return render_template('auth/register.html', title=_('Register'),
5252
form=form)

apps/basic-integration/flask/flask3-social-media/app/translations/es/LC_MESSAGES/messages.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ msgid "Invalid username or password"
7979
msgstr "Nombre de usuario o contraseña inválidos"
8080

8181
#: app/auth/routes.py:46
82-
msgid "Congratulations, you are now a registered user!"
82+
msgid "Congratulations, your registration is complete!"
8383
msgstr "¡Felicitaciones, ya eres un usuario registrado!"
8484

8585
#: app/auth/routes.py:61

apps/basic-integration/react-router/saas-template/app/features/localization/locales/en/organizations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
"Please register or log in to accept the invitation.",
1515
inviteEmailValidToastTitle: "Success",
1616
inviteYouToJoin: "{{inviterName}} invites you to join {{organizationName}}",
17-
joinSuccessToastDescription: "You are now a member of {{organizationName}}",
17+
joinSuccessToastDescription: "Your account joined {{organizationName}}",
1818
joinSuccessToastTitle: "Successfully joined organization",
1919
organizationFullToastDescription:
2020
"The organization has reached its member limit",
@@ -37,7 +37,7 @@ export default {
3737
"Please register or log in to accept the invitation",
3838
inviteLinkValidToastTitle: "Success",
3939
inviteYouToJoin: "{{inviterName}} invites you to join {{organizationName}}",
40-
joinSuccessToastDescription: "You are now a member of {{organizationName}}",
40+
joinSuccessToastDescription: "Your account joined {{organizationName}}",
4141
joinSuccessToastTitle: "Successfully joined organization",
4242
organizationFullToastDescription:
4343
"The organization has reached its member limit",

apps/basic-integration/react-router/saas-template/app/routes/_authenticated-routes+/onboarding+/user-account.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ describe("/onboarding/user-account route action", () => {
328328
}),
329329
);
330330
expect(toast).toMatchObject({
331-
description: `You are now a member of ${organization.name}`,
331+
description: `Your account joined ${organization.name}`,
332332
id: expect.any(String) as string,
333333
title: "Successfully joined organization",
334334
type: "success",
@@ -390,7 +390,7 @@ describe("/onboarding/user-account route action", () => {
390390
}),
391391
);
392392
expect(toast).toMatchObject({
393-
description: `You are now a member of ${organization.name}`,
393+
description: `Your account joined ${organization.name}`,
394394
id: expect.any(String) as string,
395395
title: "Successfully joined organization",
396396
type: "success",

0 commit comments

Comments
 (0)