Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

회원가입 후 :user 권한 부여하기 #149

Open
rorlab opened this issue Jan 18, 2015 · 1 comment
Open

회원가입 후 :user 권한 부여하기 #149

rorlab opened this issue Jan 18, 2015 · 1 comment

Comments

@rorlab
Copy link
Contributor

rorlab commented Jan 18, 2015

회원가입 후 confirm 이메일에서 확인 링크를 클릭하면 사용자 확인 작업이 완료됩니다.
Devise에는 after_confirmation 라는 콜백 메소드가 지원되기 때문에 이 콜백에서 :user 권한을 추가하면 될 것 같습니다.

현재 이전 웹사이트의 사용자들을 renewal 웹사이트로 마이그레이션 하였는데, 이미 사용자들에게 활성화 안내 이메일이 발송된 상태입니다. 저도 3개의 계정에 대한 활성화 이메일을 받았는데, 활성화 작업을 한 후에 권한을 확인해 보니까 :user 권한이 부여되지 않는 것을 확인했습니다.

@rorlab rorlab self-assigned this Jan 18, 2015
@rorlab
Copy link
Contributor Author

rorlab commented Jan 18, 2015

User 모델 클래스에 있는 confirm 메소드를 after_confirmation 콜백으로 대체하여 PR 했습니다.

@rorlab rorlab removed their assignment Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant