Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2727d02c

Přidáno uživatelem Petr Urban před asi 2 roky(ů)

new: #10245 ReactJS routing, přihlašovací formulář
desc: zprovozněn registrační formulář uživatele včetně poupravení user modulu

Zobrazit rozdíly:

src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/v2/model/User.java
96 96
        return MAX_COLUMN_LENGTH;
97 97
    }
98 98

  
99
    public String getPassword() {
100
        return this.password;
101
    }
99 102
}
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/v2/service/UserServiceImpl.java
50 50
            return UserModelStatusCodes.HASH_FAILED;
51 51
        }
52 52
        //save the user
53
        User u = userRepository.save(user);
54

  
53
        User u = userRepository.save(new User(name, email, passwordHash));
54
        //database insert failed for some reason
55
        if(u == null)
56
            return UserModelStatusCodes.USER_CREATION_FAILED;
55 57
        //TODO request to OAuth for token - send user info to the oauth app for token
56 58
        //return okay status code, the user was created
57 59
        return UserModelStatusCodes.USER_CREATED;

Také k dispozici: Unified diff