/sfdx-login-flow-confetti

Fun project to congratulate users who reset their own passwords with confetti 🎉

Primary LanguageCSS

Login Flow Confetti

Humorously inspired by SteveMo, I developed a Login Flow that determines if the user's most recent password reset was done by themselves and not issued by the System Administrator.

If yes, then the user is greeted with confetti. 🎉

If no, then the user is logged in like normal.

screenshot

screenshot

Installation

  1. Open a command line terminal on your machine.

    • On Windows, click Start, type PowerShell, and then click Windows PowerShell.
    • On macOS, press CMD + SPACEBAR to open Spotlight Search, type terminal, and then click Terminal.app.
  2. Clone or download this repository to your machine by running the following commands from your terminal.

git clone https://github.com/douglascayers/sfdx-login-flow-confetti.git
cd sfdx-login-flow-confetti
  1. Install the Salesforce CLI.

  2. Authorize the CLI with your org (e.g. Trailhead Playground or free Developer Edition org) by running the following commands from your terminal.

sfdx force:auth:web:login -s -a confetti
  1. Deploy this project to your Salesforce org by running the following commands from your terminal.

No test coverage is provided, please don't use this in production environments.

sfdx force:source:deploy -p force-app -w 10
  1. From Setup, assign the Login Flow Confetti permission set (or grant access to the LoginFlowConfettiPage visualforce page to profiles) to users who will interact with this login flow.

Getting Started

  1. From Setup, enter login into the Quick Find box, then click Login Flows.

  2. Click New, then enter the details:

    • Type: VisualForce Page
    • Name: Login Flow Confetti
    • VisualForce Page: LoginFlowConfettiPage
    • User License: choose a license
    • Profile: choose a profile
  3. Click Save.

  4. Using a user with the selected profile assigned to your Login Flow you just created, self-request a password reset.

  5. Click the link in your email to reset your password.

  6. If upon logging in to Salesforce you don't see the Login Flow, try logging out and in again. If you still don't see it, ensure your user's profile is assigned the Login Flow.

Credits

Doug Ayers develops and maintains the project.

Steve Molis inspired this silly little endeavor.

Disclaimers

This is a silly project with a silly purpose for use among friends. I do not endorse the use of this Login Flow in production environments or with users who have not consented to such tomfoolery.