Skip to content

Commit

Permalink
FEAT: allow email! as system user's name
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 12, 2022
1 parent ab0c6af commit b6108ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mezz/mezz-shell.reb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ user's: func[

su: set-user: func[
"Initialize user's persistent data under system/user"
'name [word! ref! string! unset!] "User's name"
'name [word! ref! string! email! unset!] "User's name"
/p "Password used to encrypt the data"
password [string! binary!]
/f "Use custom persistent data file location"
Expand Down Expand Up @@ -88,8 +88,9 @@ su: set-user: func[
]

if port? su/data [ close su/data ]
su/name: to ref! :name

file: split-path :file
su/name: either email? :name [:name][to ref! :name]
su/data: open [
scheme: 'safe
pass: password
Expand Down

0 comments on commit b6108ec

Please sign in to comment.