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

코드 블럭 md 문법 오타 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions devise_confirmable_jomno.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# devise 이메일 전송 없이 confirmable 처리하기

## 1. 기본 confirmable
[정식 문서](https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users)

[정식 문서](https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users)

## 2. 이메일 없이 confirmable 사용하기

#### models/user.rb
## ```ruby

```ruby
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
Expand All @@ -22,7 +23,9 @@ class User < ApplicationRecord

end
```

중요한 메소드는 두 가지이다.

1. [`skip_confirmation!`](https://www.rubydoc.info/github/plataformatec/devise/Devise%2FModels%2FConfirmable:skip_confirmation!) : 이메일 전송하지 않고 인증 처리를 완료한다.
2. [`skip_confirmation_notification!`](https://www.rubydoc.info/github/plataformatec/devise/Devise%2FModels%2FConfirmable%3Askip_confirmation_notification%21): 이메일 전송하지 않고 인증 처리는 하지 않는다.

Expand Down