FPL Plus task request #1 - implement login functionality using email and password!

in #fpl-plus6 years ago




https://github.com/amosbastian/fpl-plus

After more than three weeks of not working on the extension I am now back and ready to start applying the finishing touches before releasing it properly! There are a couple of other projects that have to do with FPL that I'm also working on simultaneously, so I've decided to create a task request for FPL Plus so everything (hopefully) gets done sooner

The task

Currently the user can log in to FPL Plus by using their user ID, but I want to change it so users can log in with their email and password. Why? Because when logging in with a user ID the user doesn't have access to all the information that they would when logging in with their email and password. For example, you can only see your current team when logging in with this, because otherwise other people could copy your transfers. There are even websites out there that are used to predict which transfers veteran players have made so other people can use this information (crazy, right?).



https://github.com/amosbastian/fpl/blob/master/fpl/fpl.py#L181-L210

I've already implemented something similar for my Python library, but since I'm new to JavaScript I'm having trouble implementing it for the popup. In the above image you can see how I implemented this, and hopefully it will be useful for figuring out how to implement it in JavaScript.

Components

Like I said, I'm not completely sure how this would be implemented in JavaScript (saving the session etc.), but whatever it turns out to be, it should be implemented in login.js in the login() function. It is possible that implementing the login functionality using an email and password will break other parts of the popup, but I will fix that myself if that's the case (unless whoever takes on this task wants to do that as well). Unfortunately there are no unit tests yet, so you will have to test if it works yourself (we can talk about this via Discord or something).

Deadline

I would like to see this completed before February, although I think it should only take < 1 hour if you know what you are doing.

Communication

You can contact me either on Discord (Amos#4622), GitHub or under this post.

Usage & installation

FPL Plus is currently not available on the Chrome store, so you must install it locally and then unpack the extension manually, or download the release from here.

  1. Clone the repository
  2. Install Node.js
  3. Run npm install to install dependencies
  4. Run npm run build to watch code changes and build the unpacked extension
  5. Navigate to chrome://extensions/, activate developer mode, click "load unpacked" and select the build/ folder

Once I have added a couple more features I will try and add compatibility with other browsers like Firefox and add it to their respective stores for easy installation. I have no idea how difficult that is, but time will tell.


I'll send the author rewards generated by this task request to whoever solves it!

TL;DR: implement functionality for logging in with email and password in login.js before February.

Sort:  

Hello, @amosbastian. Thanks for submitting your task request via Utopian. It is descriptive enough and could be easily understood by any potential solver. Good luck! :D

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thanks, hopefully something helps me out with this! Otherwise off to StackOverflow I go, lol.

Thank you for your review, @knowledges! Keep up the good work!

Did you think about adding some bounty / fixed reward for the solver on top of sending the reward potentially generated with the post?

I did, but since I'm not in a rush to get it completed and it's probably very simple I didn't see a need. Besides, I wouldn't really know how much would be appropriate.

Hi, @amosbastian!

You just got a 0.08% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @amosbastian!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Congratulations @amosbastian! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 10000 upvotes. Your next target is to reach 11000 upvotes.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Hey, @amosbastian!

Thanks for contributing on Utopian.
We’re already looking forward to your next task request!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Rewards make the effort worth it. Add some cash or Steem bounty to it.

Posted using Partiko Android

Hey @amosbastian, did you find someone for this TR. I am interested in solving it.

@creatrixity is working on it, but having some trouble with the login authentication. If you have any ideas I could add you to a group with him on Discord if you want?

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64544.47
ETH 3417.27
USDT 1.00
SBD 2.48