add search bar for sql injection
This commit is contained in:
parent
55fc355abf
commit
68d803229a
2 changed files with 10 additions and 1 deletions
|
@ -97,3 +97,7 @@ func (db *Database) UserIsLoggedIn(username string) bool {
|
|||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (db *Database) Search(term string) {
|
||||
db.ORM.Exec("SELECT * FROM tasks")
|
||||
}
|
||||
|
|
|
@ -9,7 +9,12 @@
|
|||
{{template "navbar" .}}
|
||||
|
||||
<div class="container">
|
||||
<div class="fs-3 text-center mt-5">{{ .title }}</div>
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="fs-3 text-center">{{ .title }}</div>
|
||||
<div class="col-6">
|
||||
<input type="email" class="form-control" id="floatingInput" placeholder="search for task">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="tasks"></div>
|
||||
<hr>
|
||||
|
|
Reference in a new issue