Code Monkey home page Code Monkey logo

sfdx-login-flow-confetti's Introduction

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.

sfdx-login-flow-confetti's People

Contributors

douglascayers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rahman123

sfdx-login-flow-confetti's Issues

Only show confetti prompt once per password reset

Currently, the confetti is shown to a user every time they login if their last password reset was initiated by themselves.

An enhancement would be to track that we've shown the confetti page to the user and not do it again unless they've self-reset their password.

Educate users who log in after needing an admin to reset their password

If a user's last password reset was initiated by someone else (e.g. their admin), then upon logging in this Login Flow does nothing special. It might be good and fun to propose a Trailhead module or documentation that would teach the learner how to self-reset their passwords in the future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.