Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion verify/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def wrapped_view(**kwargs):


def start_verification(to, channel='sms'):
if channel not in ('sms', 'voice'):
if channel not in ('sms', 'call'):
channel = 'sms'

service = app.config.get("VERIFICATION_SID")
Expand Down
8 changes: 4 additions & 4 deletions verify/templates/auth/register.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block head %}
{{ super() }}
<link
rel="stylesheet"
href="{{ url_for('static', filename='css/intlTelInput.css') }}"
/>
{% endblock %}
{% endblock %}
{% block header %}
<h1>{% block title %}Register{% endblock %}</h1>
{% endblock %}
{% endblock %}
{% block content %}
<form method="post">
<label for="username">Username</label>
Expand All @@ -19,7 +19,7 @@ <h1>{% block title %}Register{% endblock %}</h1>
<input type="tel" name="phone" id="phone" required />
<label for="channel">Verification method:</label>
<label><input type="radio" name="channel" value="sms" checked />SMS</label>
<label><input type="radio" name="channel" value="voice" />Call</label>
<label><input type="radio" name="channel" value="call" />Call</label>
<button name="form-submit" type="submit">Sign Up</button>
</form>
<script src="{{ url_for('static',filename='js/intlTelInput.js') }}"></script>
Expand Down