Trim space from share tokens

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-05 15:03:12 +02:00
parent f79cfc6513
commit 25acbe7ba2
2 changed files with 1 additions and 2 deletions

View file

@ -61,7 +61,6 @@
color="secondary-dark"
v-model="link.Token"
class="input-secret"
mask="n"
></v-text-field>
</v-flex>
<!-- v-flex xs12 sm6 class="pa-2">

View file

@ -36,7 +36,7 @@ func UpdateLink(c *gin.Context) {
link.LinkExpires = f.LinkExpires
if f.LinkToken != "" {
link.LinkToken = strings.ToLower(f.LinkToken)
link.LinkToken = strings.TrimSpace(strings.ToLower(f.LinkToken))
}
if f.Password != "" {