ddspog/inspetor-mups

As a user, I want to login on system using my email and a code, so that I can use the program.

Closed this issue · 1 comments

Overview

  • For: Allow creation of new users.
  • What: Add register service with username, email, password and code.
  • To: New users will be connected via code, allowing better search.

Why this would be great

This app, actually, it's an tool for university purpose of tracking sanitation
problems on the campus. We have now, a mLab database with 0,5GB to
run our experiments with some students on engineering classes.

We can't allow new users from everywhere on the world, to fill our database
with irrelevant data for our experiments. Since the experiments need to be
rated, each subject, it's interesting to set some codes. That way, teachers will
be able to rate students on certain group, depending on how many records they
made.

What are we facing?

I've had implemented a register and login service using user phone number as
ID. I've planned to use SMS verification to make sure the users are unique and
real.

But SMS verification it's very expensive on Meteor platform. So I need to go back
to a simpler login service, with username and password.

At the moment the code just doesn't work. The SMS verification it's made via
console on test. The message appears on console, since some environment
variables aren't set.

Expected result

I expect a new register service, that use username, email, password and a validation
code (that will be delivered from each teacher, or people responsible on the app). All
that info will be stored on database.

I expect a new login service, using only username and password, for simple login.

Complete US

I've manage to create a system, where the login and register use only username, password, email and a authorization code (that will validate the users). I've also fixed e-mail handling operations (verify email, reset password, etc).