Skip to content

Commit b6108ec

Browse files
committed
FEAT: allow email! as system user's name
1 parent ab0c6af commit b6108ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mezz/mezz-shell.reb

+3-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ user's: func[
6060

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

9090
if port? su/data [ close su/data ]
91-
su/name: to ref! :name
91+
9292
file: split-path :file
93+
su/name: either email? :name [:name][to ref! :name]
9394
su/data: open [
9495
scheme: 'safe
9596
pass: password

0 commit comments

Comments
 (0)