steemit / faucet

Steemit Account Creation Web Application
MIT License
22 stars 43 forks source link

Redirect with username and tracking ids #188

Open jnordberg opened 6 years ago

jnordberg commented 6 years ago

Condenser supports autofill in the login form, we should use that when redirecting:

https://steemit.com/login.html#account=billbonds

And we also need the ability to pass along identifiers that are carried along trough the process and sent to the DEFAULT_REDIRECT_URI


Spec:

  1. Values passed via query strings to first step are carried through the signup process
  2. Redirect uri is resolved via templating
    1. Variables in template look like: {{variable_name}}
    2. username is special and is populated by newly created username and not overridable by first step query strings

Example: With DEFAULT_REDIRECT_URI set to https://example.com/{{username}}?foo={{bar}} and an initial entry point to step1 with ?bar=man and new username baz the redirect url should resolve to: https://example.com/baz?foo=man

Tests:

gregory-latinier commented 6 years ago

Ok I'll modify the code to match the specs