Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear login data #51

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Clear login data #51

wants to merge 21 commits into from

Conversation

akutch
Copy link

@akutch akutch commented Jul 9, 2021

Description

Based on @tijno's changes #39 per issue #34

Adds "Clear login data" option to login for users to be able to wipe their accounts from localstorage. The bulk of the diff here is from Prettier formatting the styles.scss file 😅

Screenshots

Before After
Screen Shot 2021-07-10 at 11 40 11 AM Screen Shot 2021-07-10 at 11 28 56 AM
n/a Screen Shot 2021-07-10 at 11 38 27 AM
See it live (back button + confirmation flow) flow

@akutch akutch mentioned this pull request Jul 9, 2021
@@ -1,24 +1,25 @@
$primary: #0059F7;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was all from Prettier 😬 I think it helps with consistency and readability to have these changes

Apart from all the syntax updates, I removed the following styles and added them to log-in.component.scss since that's the only place they were being used

.log-in-google,
.log-in-seed,
.sign-up-google,
.sign-up-seed {
  height: 72px;
  width: 290px;
  background-size: 290px 72px;
}

.log-in-google {
  background-image: url(/assets/log_in_google.png);
}

.log-in-seed {
  background-image: url(/assets/log_in_seed.png);
}

.sign-up-google {
  background-image: url(/assets/sign_up_google.png);
}

.sign-up-seed {
  background-image: url(/assets/sign_up_seed.png);
}


.sign-up-seed {
background-image: url(/assets/sign_up_seed.png);
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved most of these over from styles.scss since they're only used for login

@akutch akutch marked this pull request as ready for review July 10, 2021 15:57
@akutch akutch requested a review from a team as a code owner July 10, 2021 15:57
@akutch akutch changed the title Wipe login data (separate component) Clear login data (based on https://github.com/bitclout/identity/pull/39) Jul 10, 2021
@akutch akutch changed the title Clear login data (based on https://github.com/bitclout/identity/pull/39) Clear login data Jul 10, 2021
class="container home-container"
*ngIf="globalVars.inTab || globalVars.webview"
>
<div class="font-weight-bold fs-30px mb-20px">Clear Login Data</div>
Copy link
Author

@akutch akutch Jul 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the verbiage here from wipe --> clear since I felt like it reads and looks better. I can certainly change it back if we want to stick with wipe, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "Clear" is a better choice here. Let's stick with your change.

class="btn btn-primary font-weight-bold fs-15px ml-10px sign-up-btn"
[routerLink]="['/log-in']"
>
Confirm
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also changed this button text from Next --> Confirm to match the above "Confirming this step will.." phrasing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@maebeam maebeam self-assigned this Jul 10, 2021
@tijno
Copy link
Contributor

tijno commented Jul 11, 2021

@akutch amazing! thank you so much.

@akutch
Copy link
Author

akutch commented Jul 24, 2021

Any updates here?

Copy link
Member

@lazynina lazynina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @akutch!

class="container home-container"
*ngIf="globalVars.inTab || globalVars.webview"
>
<div class="font-weight-bold fs-30px mb-20px">Clear Login Data</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "Clear" is a better choice here. Let's stick with your change.

class="btn btn-primary font-weight-bold fs-15px ml-10px sign-up-btn"
[routerLink]="['/log-in']"
>
Confirm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lazynina
Copy link
Member

@maebeam can you take a review of this? Wanted a second set of eyes and forgot to tag you earlier. sorry @akutch

@@ -69,20 +64,16 @@ export class LogInComponent implements OnInit {
oauthUri.searchParams.append('client_id', GoogleDriveService.CLIENT_ID);
oauthUri.searchParams.append('scope', GoogleDriveService.DRIVE_SCOPE);
oauthUri.searchParams.append('response_type', 'token');
// TODO: Investigate using this parameter to defend against CSRF attacks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a merge accident?

@maebeam
Copy link
Contributor

maebeam commented Aug 29, 2021

If you could just fix that one merge conflict I'd love to get this added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants