mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
These changes ensure that the new (SHA256) session ID is returned in the "session_id" field, so that developers have time to update their client implementations to use the new "access_token" field. Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -56,7 +56,7 @@ func GetSession(router *gin.RouterGroup) {
|
||||
AddSessionHeader(c, authToken)
|
||||
|
||||
// Response includes user data, session data, and client config values.
|
||||
response := SessionResponse(authToken, sess, get.Config().ClientSession(sess))
|
||||
response := GetSessionResponse(authToken, sess, get.Config().ClientSession(sess))
|
||||
|
||||
// Return JSON response.
|
||||
c.JSON(http.StatusOK, response)
|
||||
|
||||
Reference in New Issue
Block a user