cozy / cozy-proxy

This repository was part of CozyV2 which has been deprecated - Cozy authentication and routing layer
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
26 stars 31 forks source link

Fix current step issue #356

Closed gregorylegarec closed 7 years ago

gregorylegarec commented 7 years ago

With infos step and accounts step which may be both inactive, server may pass one of them as current step to client. This causes an exception, because current step is not in onboarding's active steps list.

This PR fixes this issue, by delegating the decision of the current step to the client. To do so, it passes to it the full onboardedSteps list.

CPatchane commented 7 years ago

Thanks!