Browse Source

bug fix: fixed topup seform bug

control 3 years ago
parent
commit
e6d814c95f
3 changed files with 4 additions and 1 deletions
  1. 2 1
      app/dashboards.py
  2. BIN
      app/database.db
  3. 2 0
      app/templates/base.html

+ 2 - 1
app/dashboards.py

@@ -75,7 +75,8 @@ def profile():
                 key = stripe.stripe_keys['publishable_key'],
                 user = current_user,
                 amount = amount,
-                ramount = raw_amount
+                ramount = raw_amount,
+                seform = seform
                 )
 
 

BIN
app/database.db


+ 2 - 0
app/templates/base.html

@@ -60,6 +60,7 @@
         </ul>
         {% endif %}
         </ul>
+        {% if user.is_authenticated %}
         <div>
             <form action="search" name="searchterm" class="input-group navbar-nav-middle flash_message_size">
                 {{ seform.hidden_tag() }}
@@ -69,6 +70,7 @@
                 </div>
             </form>
         </div>
+        {% endif %}
     </nav>
     <!-- For Flash Errors to User -->
     {% with messages = get_flashed_messages(with_categories=true) %}