Ignore:
Timestamp:
02/15/23 17:58:59 (17 months ago)
Author:
trajchevaM <118018439+trajchevaM@…>
Branches:
main
Children:
59a8941, dad5bcd
Parents:
f0232fb
Message:

register functionality

  1. Changed css of login.html
  2. Changed css and html of register
  3. Foreign keys in Adopter and Employee changed from int to Integer
  4. AuthorisationService updated with methods for employee and adopter registration
  5. RegisterController works only for employee and adopter
  6. Added services for Organisation and Shelter for dropdown list on registration form
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/service/AuthService.java

    rf0232fb rda44aef  
    44import finki.paw5.model.entities.Employee;
    55import finki.paw5.model.entities.User;
    6 
    7 import java.util.Optional;
     6import finki.paw5.model.enumerations.FreeTime;
     7import finki.paw5.model.enumerations.Funds;
     8import finki.paw5.model.enumerations.Housing;
     9import finki.paw5.model.enumerations.PhysicalActivity;
    810
    911public interface AuthService {
    1012    User login (String email, String password);
    11 //    Adopter registerAdopter(String password, String repeatPassword, String name, String email, String telephone);
    12 //    Employee registerEmployee(String password, String repeatPassword, String name, String email, String telephone);
     13    Adopter registerAdopter(String name, String email, String password, String telephone, FreeTime freeTime, Funds funds, boolean hasOtherPets, boolean hasKids, Housing housing, PhysicalActivity physicalActivity, boolean willFoster);
     14    Employee registerEmployee(String name, String email, String password, String telephone, String position, Integer shelterId);
    1315
    1416}
Note: See TracChangeset for help on using the changeset viewer.