# Path: confirm/views.py
# class ConfirmServerContactView(LoginRequiredMixin, ConfirmationView):
#     model = ServerConfirmationKey
#     url = 'server:status'
# 
#     def get_success_url(self, key):
#         return reverse(self.url, kwargs={'pk': key.subject.pk})
# 
# Path: confirm/views.py
# class UserConfirmationView(ConfirmationView):
#     model = UserConfirmationKey
#     url = 'account:index'


from django.urls import path
from confirm.views import ConfirmServerContactView
from confirm.views import UserConfirmationView
# This file is part of django-xmpp-server-list
# (https://github.com/mathiasertl/django-xmpp-server-list)
#
# django-xmpp-server-list is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# xmppllist is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with django-xmpp-server-list.  If not, see <http://www.gnu.org/licenses/>.



app_name = 'confirm'

# TODO: use base64 as path converter
urlpatterns = [
    path('user/contact/<str:key>/', UserConfirmationView.as_view(), name='user_contact'),
    path('server/<str:key>/', ConfirmServerContactView.as_view(), name='server'),

# Path: confirm/views.py
# class ConfirmServerContactView(LoginRequiredMixin, ConfirmationView):
#     model = ServerConfirmationKey
#     url = 'server:status'
# 
#     def get_success_url(self, key):
#         return reverse(self.url, kwargs={'pk': key.subject.pk})
# 
# Path: confirm/views.py
# class UserConfirmationView(ConfirmationView):
#     model = UserConfirmationKey
#     url = 'account:index'


# Path: confirm/urls.py
from django.urls import path
from confirm.views import ConfirmServerContactView
from confirm.views import UserConfirmationView

# This file is part of django-xmpp-server-list
# (https://github.com/mathiasertl/django-xmpp-server-list)
#
# django-xmpp-server-list is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# xmppllist is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with django-xmpp-server-list.  If not, see <http://www.gnu.org/licenses/>.



app_name = 'confirm'

# TODO: use base64 as path converter
urlpatterns = [
    path('user/contact/<str:key>/', UserConfirmationView.as_view(), name='user_contact'),
    path('server/<str:key>/', ConfirmServerContactView.as_view(), name='server'),

]