Sprint 3: Sequence diagram - SD-Group-11/ml-frontend GitHub Wiki
In order to use the machine learning models a user must be logged in. The user has the choice of clicking a login button or a registration button which will take them to a login or registration page.
On the login page the user may enter their details, if these are valid the user will be redirected to the home page. Alternatively the user may click the "forgot password button" which will bring them to the forgot password page. Here they will be prompted to enter their email address.If a user with that email address exist then they will be sent an email with a link allowing them to reset their password(the link sent also contains an authentication token). After entering a new password the user will be redirected to the login page and will also receive an email notifying them of the change.
On the registration page the user can enter their details and click the register button. If anything goes wrong with the registration, for example if the users username has already been taken, then the user will be notified of this. If the registration is successful the user will be redirected to the login page.
Once a user clicks on a machine learning model they will be redirected to that page. Here they will be allowed to upload data for the model to run on. The data will then be stored in the database. If all goes well the user will be notified that the upload was successful and they meta-data of that data set will be displayed.