2
express-stormpath에서 다른 그룹의 다른 등록 페이지를 만들려고합니다. 예 :급행 호우 경로의 그룹에 대해 다른 등록 페이지를 만드는 방법
router.get('/new', stormpath.groupsRequired(['Merchants']), function(req, res){
//this would render a signup for merchants if a merchant wasn't signed in
});
router.get('/new', stormpath.groupsRequired(['customers']), function(req, res){
//this would render a signup for customer if a customer wasn't signed in
});
문서를 읽었지만 행운이 없었습니다. 어떻게해야합니까?
는 두 개의 서로 다른 디렉토리에 다른 레지스터 페이지를 제공 할 수있는 방법이) = 그것을 유지하는 회사의 원본이 라이브러리의 저자, 작업 해요? 나는. 판매자 디렉토리에 저장된 계정의 등록 페이지 및 고객 디렉토리의 계정에 대한 등록 페이지 – user7428822
즉시 사용할 수 있습니다. 당신 스스로해야 할 것입니다. 그러나이 내용은 문서에서 다룹니다. https://docs.stormpath.com/nodejs/express/latest/templates.html – rdegges