Closed omzmarlon closed 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
👍 🏅
This pull request include: