omzmarlon / ManagementApp

0 stars 0 forks source link

Front end #28

Closed omzmarlon closed 7 years ago

omzmarlon commented 7 years ago

This pull request include:

tomyang729 commented 7 years ago

辛苦了💦 我这两天花时间看一下

omzmarlon commented 7 years ago

@tomyang729 Updated code based on review. Renamed method in ProtobufUtil And I switched to use cookies for authentication. I didn't realize play has some nice support for cookie manipulation. Using cookies actually makes front-end and backend code cleaner. And also don't need an "TokenDTO" anymore (we can just store username in cookies)

Reference: https://www.playframework.com/documentation/2.5.x/ScalaResults http://alvinalexander.com/source-code/scala/how-getread-cookie-play-framework-2

tomyang729 commented 7 years ago

👍 🏅