{"action":"closed","issue":{"url":"https://api.github.com/repos/LanMomo/LanMomo-Website/issues/41","labels_url":"https://api.github.com/repos/LanMomo/LanMomo-Website/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/LanMomo/LanMomo-Website/issues/41/comments","events_url":"https://api.github.com/repos/LanMomo/LanMomo-Website/issues/41/events","html_url":"https://github.com/LanMomo/LanMomo-Website/issues/41","id":62039906,"number":41,"title":"Utilisation des messages du serveur","user":{"login":"petit-prince","id":5315391,"avatar_url":"https://avatars.githubusercontent.com/u/5315391?v=3","gravatar_id":"","url":"https://api.github.com/users/petit-prince","html_url":"https://github.com/petit-prince","followers_url":"https://api.github.com/users/petit-prince/followers","following_url":"https://api.github.com/users/petit-prince/following{/other_user}","gists_url":"https://api.github.com/users/petit-prince/gists{/gist_id}","starred_url":"https://api.github.com/users/petit-prince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petit-prince/subscriptions","organizations_url":"https://api.github.com/users/petit-prince/orgs","repos_url":"https://api.github.com/users/petit-prince/repos","events_url":"https://api.github.com/users/petit-prince/events{/privacy}","received_events_url":"https://api.github.com/users/petit-prince/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LanMomo/LanMomo-Website/labels/frontend","name":"frontend","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/LanMomo/LanMomo-Website/milestones/2","html_url":"https://github.com/LanMomo/LanMomo-Website/milestones/m2%20-%20premi%C3%A8re%20impl%C3%A9mentation%20fonctionnelle","labels_url":"https://api.github.com/repos/LanMomo/LanMomo-Website/milestones/2/labels","id":962713,"number":2,"title":"m2 - première implémentation fonctionnelle","description":"Seulement les inscriptions avec confirmation par courriel.\r\nPage statique qui liste les jeux 'officiels'.","creator":{"login":"jdupl","id":4731264,"avatar_url":"https://avatars.githubusercontent.com/u/4731264?v=3","gravatar_id":"","url":"https://api.github.com/users/jdupl","html_url":"https://github.com/jdupl","followers_url":"https://api.github.com/users/jdupl/followers","following_url":"https://api.github.com/users/jdupl/following{/other_user}","gists_url":"https://api.github.com/users/jdupl/gists{/gist_id}","starred_url":"https://api.github.com/users/jdupl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdupl/subscriptions","organizations_url":"https://api.github.com/users/jdupl/orgs","repos_url":"https://api.github.com/users/jdupl/repos","events_url":"https://api.github.com/users/jdupl/events{/privacy}","received_events_url":"https://api.github.com/users/jdupl/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2015-02-03T00:51:42Z","updated_at":"2015-03-17T23:11:39Z","due_on":"2015-03-23T04:00:00Z","closed_at":null},"comments":0,"created_at":"2015-03-16T10:36:54Z","updated_at":"2015-03-17T23:11:39Z","closed_at":"2015-03-17T23:11:39Z","body":"## Problème\r\nJe viens de réaliser que les messages d'erreurs sont hardcodés dans le html. Plus particulièrement, la vue partielle subscription.html ne fait pas usage des messages renvoyés par le serveur. Dans le commit 4e6ce5c5d423ef730955e41b25da064515d6fb3b, je renvoie un 200 si le courriel s'est bien rendu. On pourrait utiliser ce message là au lieu d'avoir une string hardcodé dans le html. De plus, les messages d'erreurs sont également spécifiés par le serveur dans le cas d'une erreur.\r\n\r\n## Solution et Implémentation\r\n@Kiniamaro, tu pourrais simplement utiliser un $scope.message qui prend le message à partir de l'appel http et tu affiches dans le html {{message}}. Tu peux garder $scope.submitted car c'est cette variable-là qui te permet de changer la classe css. "}}