summaryrefslogtreecommitdiff
path: root/blocks/authAPI/templates/activate_user.html
blob: 4074b96bee8b6c5c0f17b5223a4b56bc7e8e69cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">

<head>

    <!-- Basic Page Needs -->
    <meta charset="utf-8">
    <title>Activate Account</title>
    <meta name="description" content="">

    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- FONT -->
    <link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

    <!-- CSS -->
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/skeleton.css">
    <style>
        html, body {
            min-height: 100%;
        }

        #clickhere {
            cursor: pointer;
        }
    </style>

    <!-- Script -->

    <script>
        function sendData() {
            $.ajax({
                url: "{{ activation_url }}",
                data: { uid: '{{ uid }}', token: '{{ token }}' },
                type: "POST",
                dataType: "json",
                success: function (data) {
                    window.location.replace('{{ redirect_url }}');
                },
                error: function (err) {
                    console.log(err)
                    $('#error-text').text(err.statusText)
                }
            });
        }
    </script>

    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="/favicon.ico">

</head>

<body>
    <!-- Primary Page Layout -->
    <div class="container">
        <div class="row">

            <div style="padding-top: 10%; align-content: center;">
                <h1 style="text-align: center;">To Activate Your Account
                    <a id="clickhere" onClick="sendData();"><strong><u>Click Here</u><strong></a></h1>
            </div>
            <div style="padding-top: 10%; align-content: center;">
                <h1 style="text-align: center; color: #e25555;" id="error-text"> </h1>
            </div>
        </div>
    </div>
    <!-- End Document -->
</body>

</html>