# Can You Restrict Signups Using \`swot\` Email Verification?

**URL:** https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030
**Category:** Support
**Tags:** email
**Created:** [August 10, 2024, 1:26pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030 "2024-08-10T13:26:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tpglitch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpglitch/32/322836_2.png) [@tpglitch](https://meta.discourse.org/u/tpglitch)
#### Post date: [August 10, 2024, 1:26pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/1 "2024-08-10T13:26:32Z")

</div>

Hello,  
Can anyone give information on how it would be possible to regulate signups that only people can signup if their email passes swot:  
[https://github.com/leereilly/swot](https://github.com/leereilly/swot)  
It is written in Ruby, just like Discourse.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 10, 2024, 10:35pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/2 "2024-08-10T22:35:02Z")

</div>

You’d need a plugin that would validate email addresses against that gem. A simple one would do it just when it tried to create the account. A more sophisticated version would do it before it was submitted. I’d guess it’s 1-3 hours work for a seasoned discourse c developer.

See [Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515) or #Marketplace. There’s also a all-the-plugins repo in the github discourse hierarchy that’s a good place to look for examples.

---

<div class="post-metadata">

### Author: ![tpglitch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpglitch/32/322836_2.png) [@tpglitch](https://meta.discourse.org/u/tpglitch)
#### Post date: [August 10, 2024, 10:35pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/3 "2024-08-10T22:35:53Z")

</div>

Alright, I’ll look to see if I can modify `swot` to be a plugin for Discourse.

---

<div class="post-metadata">

### Author: ![tpglitch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpglitch/32/322836_2.png) [@tpglitch](https://meta.discourse.org/u/tpglitch)
#### Post date: [August 10, 2024, 10:39pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/4 "2024-08-10T22:39:12Z")

</div>

I’ve never touched ruby, so sorry if I sound dumb, but is it possible to create a plugin and like install `swot` as a dependency to validate emails against?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 10, 2024, 10:49pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/5 "2024-08-10T22:49:33Z")

</div>

Yes. It’s quite possible, but if you want to do it yourself you’ll need to understand, or at least interact with ruby, rails, discourse, and discourse plugins.

It seems like you don’t understand those things. If you’re a developer familiar with other languages, you might get up to speed to write such a plugin in 10 to 40 hours.

If you have money, you can post in #Marketplace

---

<div class="post-metadata">

### Author: ![tpglitch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpglitch/32/322836_2.png) [@tpglitch](https://meta.discourse.org/u/tpglitch)
#### Post date: [August 10, 2024, 11:26pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/6 "2024-08-10T23:26:20Z")

</div>

I’m working on a plugin for it now, I will post an update here after I get it done & working.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 9, 2024, 11:26pm UTC](https://meta.discourse.org/t/can-you-restrict-signups-using-swot-email-verification/321030/7 "2024-09-09T23:26:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
