Trim space from share tokens
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
f79cfc6513
commit
25acbe7ba2
2 changed files with 1 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in a new issue